From 17792f583df31f465aea363cf46f9cd22ba1503e Mon Sep 17 00:00:00 2001 From: Aniol Martí Date: Sat, 10 Sep 2022 23:09:17 +0200 Subject: Add parameter to change font size --- assets/sass/researcher.scss | 2 ++ exampleSite/config.toml | 1 + 2 files changed, 3 insertions(+) diff --git a/assets/sass/researcher.scss b/assets/sass/researcher.scss index 8bd2561..f032811 100644 --- a/assets/sass/researcher.scss +++ b/assets/sass/researcher.scss @@ -8,6 +8,7 @@ $red: {{ .Param "style.colorRed" | default "#dc3545" }}; // Font $font-family: {{ .Param "style.fontFamily" | default "Inconsolata" }}; +$font-size: {{ .Param "style.fontSize" | default "14pt" }}; // Margins $y-small: 0.6rem; @@ -46,6 +47,7 @@ $y-medium: 1.0rem; * { color: $black; font-family: $font-family; + font-size: $font-size; line-height: 1.2; } .container { diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1ca459a..69c23fd 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -16,6 +16,7 @@ googleAnalytics = "" # add your tracking id url = "https://github.com/ojroques/hugo-researcher" [params.style] # appearance options (can be omitted) fontFamily = "Inconsolata" + fontSize = "14pt" pageWidth = "750px" avatarSize = "90px" colorBlack = "#222222" -- cgit v1.2.3