diff options
author | lucasradaelli <64749873+lucasradaelli@users.noreply.github.com> | 2020-06-01 21:47:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-01 21:47:51 +0300 |
commit | 8984ca9d6aafa730ad1688ba07ec9fce4add1b91 (patch) | |
tree | 0a889d98be098b7d43a89da0291ea63d17f32594 /exampleSite | |
parent | 80cd067683bf69c42f6e02995585462dd9e19d95 (diff) |
Custom css and localization support (#28)
* Adds i18n support for theme
* Adds a way for sites to have custom css.
This change adds a param to the theme (called customCss), which allows sites to
provide extra css under static/, so that they don't need to copy the theme's css
whole file.
If no custom css is in the params, this change is NOP.
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/config.yaml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 52153a2..ae46486 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -24,6 +24,14 @@ params: dateFormat: Jan 2, 2006 codePenUser: someUser katex: true + # A list of custom css files can be provided, which must be placed inside + # 'static/'. + # This is useful to override just specific css classes, instead of copying + # the entire theme's css file to your own site. + # Usage: + # customCss: + # - css/foo.css # relative path starting from static/ + #- css/bar.css menu: nav: |