Coder Social home page Coder Social logo

Comments (3)

packruler avatar packruler commented on July 23, 2024

Can you link me to the documentation for this feature? As far as I am aware theme-park primarily adds one <style ... /> unless it is for an addon.

from traefik-themepark.

beloso avatar beloso commented on July 23, 2024

Oh, sorry.
I don't think this is a theme-park feature. And as far as my experience goes Safari macOS browser is the only one that doesn't color the "address bar" appropriately (see my prowlarr snapshot above).
From what I could understand this can only be solved by sub filtering/replacing the <meta name="theme-color" content="....">
I figure I can use another Traefik plugin and do this, just thought to ask if it would be possible to integrate it in this one.

from traefik-themepark.

packruler avatar packruler commented on July 23, 2024

You should be able to use my Rewrite Body plugin. This plugin is mostly a wrapper for that plugin to simplify the setup of theme-park themes. I expect you will need to make a plugin reference to add the link tag for the theme as well as the meta tag you are referencing, but it should be relatively straight forward.

For example:

middlewares:
    rewrite-foo:
      plugin:
        rewrite-body:
          lastModified: true

          rewrites:
            - regex: </head>
              replacement: >-
                <link rel="stylesheet" type="text/css" href="https://theme-park.dev/css/base/prowlarr/nord.css">
                <meta name="theme-color" content="#000000">
                </head>

          monitoring:
            methods:
              - GET
            types:
              - text/html
  • NOTE this was a quick sample built from the README on the Rewrite Body plugin that has not been tested ;)

from traefik-themepark.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.