diff options
| author | Olivier Roques <oroques@fastmail.com> | 2021-01-31 13:22:09 +0100 | 
|---|---|---|
| committer | Olivier Roques <oroques@fastmail.com> | 2021-01-31 13:22:09 +0100 | 
| commit | 8d17170d2a4e46c4168bbff9b4c6afe8f19a5fec (patch) | |
| tree | 881bc2d37821fb91864a5d3ad48f730c739c2dec | |
| parent | 81ebea577c9f8b5a5571db0256a8ddc3da9e198b (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" | 
