aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/sass/researcher.scss10
-rw-r--r--exampleSite/config.toml2
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"