manid2 / hugo-xterm

Hugo theme designed for reading and printing text with dark and light modes.
https://manid2.github.io/hugo-xterm/
GNU General Public License v3.0
41 stars 8 forks source link

Support custom favicon, colorscheme #3

Open hyperreal64 opened 10 months ago

hyperreal64 commented 10 months ago

This is an amazing theme! Thanks for making it.

I'm wondering if you could support setting a custom favicon in config.toml.

If it's not too much trouble, would you be willing to support changing the colorscheme in config.toml? If this add more complexity than necessary/desired, then don't worry about it.

manid2 commented 10 months ago

Hi @hyperreal64 thanks for appreciating this theme 😃 .

I made this for my own personal website. I have added all the (minimal) features I needed in my website to show my CV, blogs and technical documentation.

Regarding your queries:

support setting a custom favicon in config.toml.

This is already present in this theme we can set any image as favicon in config.toml at this location config.toml:13

favicon = "/images/xterm.png"

If this is not what you want please let me know what you are expecting so I can support it.

support changing the colorscheme

This is simple to implement in this theme we just need to change the base HSL color from this all other colors are derived.

Here is how this theme looks if I change the base color blue HSL(240deg, 100%, 50%) to red HSL(0deg, 100%, 50%).

image

But some parts of the theme may not be readable or not clearly visible so need to adjust the base color and check visually for every component in the theme so this is a lot of effort for now will do it at some point later.