jpanther / congo

A powerful, lightweight theme for Hugo built with Tailwind CSS.
https://jpanther.github.io/congo/
MIT License
1.19k stars 313 forks source link

:sparkles: add defaultThemeColor option #849

Closed ItsSunnyMonster closed 4 months ago

ItsSunnyMonster commented 5 months ago

Some applications (such as Discord) use the theme-color meta tag to display an accent color on its embeds. Currently the theme-color will be changed when the page loads by a script to reflect the current theme of the page (dark or light), but Discord ignores this and takes the value off of the original HTML. Therefore we can safely set this tag to some color specified by the user and not break the theme-aware theme-color functionality.

P.S. I don't speak Japanese so it will be great if anyone could translate the documentation for the new param.

netlify[bot] commented 5 months ago

Deploy Preview for hugo-congo ready!

Built without sensitive environment variables

Name Link
Latest commit 4f65d3bf4e866ad2c9f90712728fac08928a7709
Latest deploy log https://app.netlify.com/sites/hugo-congo/deploys/660a5aaa4d374e0008fb168f
Deploy Preview https://deploy-preview-849--hugo-congo.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

jpanther commented 4 months ago

Thanks for the PR, @ItsSunnyMonster. I'm happy to add this feature in, and the documentation you've supplied is super helpful! Will merge it in now.