Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom css files to be loaded by configuration #376

Merged
merged 1 commit into from
Apr 14, 2020
Merged

Commits on Mar 9, 2020

  1. Allow custom css files to be loaded by configuration

    Previously adding custom css files would require the end user to copy
    the header or footer partial into their overrides. They would then
    need to maintain that partial into the future.
    
    This config allows a user to provide a list of custom css files to load
    into the theme, meaning they do not need to clone the partial.
    
    ```
    [params]
      custom_css = ["css/foo.css", "css/bar.css"]
    ```
    
    Inspiration taken from https://discourse.gohugo.io/t/how-to-override-css-classes-with-hugo/3033/4
    matalo33 committed Mar 9, 2020
    Configuration menu
    Copy the full SHA
    21fcd61 View commit details
    Browse the repository at this point in the history