Track3 / hermit

A minimal & fast Hugo theme for bloggers
https://hugo-theme-hermit.netlify.com/
MIT License
1.11k stars 305 forks source link

Custom CSS #104

Open therealpaperclip opened 4 years ago

therealpaperclip commented 4 years ago

Sincere apologies for this annoying newbie question, but I'm really stuck. I created some custom CSS in order to style a form I've integrated.

I tried the following (without success).

  1. I placed a custom.css (containing only my code) in static/css/
  2. I placed a custom.css (containing my css AND your CSS) in static/css.

In both cases I referred in config.toml with customCSS = ["css/custom.css"]

What am I doing wrong?

The only thing that is working for me (of course) is when I revise your CSS file in the theme/assets folder directly. But I don't want to do that.

TheGroundZero commented 4 years ago
  1. Add a file custom.css in static/css/
  2. Add the following lines in config.toml
    [params]
    customCSS = ["css/custom.css"]

Note: if you already have a params-header, just add the customCSS line in that section