reorx / hugo-PaperModX

A fast, clean, responsive Hugo theme.
https://reorx.github.io/hugo-PaperModX/
MIT License
326 stars 86 forks source link

[Feature Request] Option for different logo in dark/light mode #33

Open istvnurbn opened 2 years ago

istvnurbn commented 2 years ago

Hi,

Would it be possible to add a separate dark/light mode logo to the site?

I'm now using a solution by @pushblue.

It is okay for now, but if there will be a major change in the header/footer partial this will cease to work.

My suggestion would be to add two separate icon params under the label group like so:

logo:
  text: "my-title"
  iconDark: "my-darkmode-icon.svg"
  iconLight: "my-lightmode-icon.svg"

Or the approach in the original PaperMod theme would also work: issue 976