From 8d17170d2a4e46c4168bbff9b4c6afe8f19a5fec Mon Sep 17 00:00:00 2001 From: Olivier Roques Date: Sun, 31 Jan 2021 13:22:09 +0100 Subject: Add default options --- assets/sass/researcher.scss | 10 +++++----- 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" -- cgit v1.2.3