diff options
author | Olivier Roques <oroques@cisco.com> | 2021-01-31 15:22:09 +0300 |
---|---|---|
committer | Olivier Roques <oroques@cisco.com> | 2021-01-31 15:22:09 +0300 |
commit | 3b00e619381916e42fe696820ba2030db3f32a64 (patch) | |
tree | 881bc2d37821fb91864a5d3ad48f730c739c2dec | |
parent | 5dc15490ccc07d5e45f51a7a0a0560bd0155301f (diff) |
Add default options
-rw-r--r-- | assets/sass/researcher.scss | 10 | ||||
-rw-r--r-- | exampleSite/config.toml | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/assets/sass/researcher.scss b/assets/sass/researcher.scss index d75810f..89b5f09 100644 --- a/assets/sass/researcher.scss +++ b/assets/sass/researcher.scss @@ -1,13 +1,13 @@ // Sizes -$max-width: {{ .Param "style.pageWidth" }}; -$avatar-size: {{ .Param "style.avatarSize" }}; +$max-width: {{ .Param "style.pageWidth" | default "750px;" }}; +$avatar-size: {{ .Param "style.avatarSize" | default "90px;" }}; // Colors -$black: {{ .Param "style.colorBlack" }}; -$red: {{ .Param "style.colorRed" }}; +$black: {{ .Param "style.colorBlack" | default "#222222" }}; +$red: {{ .Param "style.colorRed" | default "#dc3545" }}; // Font -$font-family: {{ .Param "style.fontFamily" }}; +$font-family: {{ .Param "style.fontFamily" | default "Inconsolata" }}; // Margins $y-small: 0.6rem; diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 308df72..4b4f741 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -14,7 +14,7 @@ googleAnalytics = "" # add your tracking id [params.footer] text = "By Olivier Roques" url = "https://github.com/ojroques/hugo-researcher" - [params.style] # appearance options (can be modified but not removed) + [params.style] # appearance options (can be omitted) fontFamily = "Inconsolata" pageWidth = "750px" avatarSize = "90px" |