aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Roques <ojroques@users.noreply.github.com>2022-09-10 23:24:28 +0200
committerGitHub <noreply@github.com>2022-09-10 23:24:28 +0200
commit027e9d194cc652f4abe1b2cc1da30cfa381aa4b3 (patch)
tree07ae27722ab8ff98a664114062e918ff1a94989c
parentcaff0488fa12d5e1d07768ac785c3d65676272bf (diff)
parent17792f583df31f465aea363cf46f9cd22ba1503e (diff)
Merge pull request #29 from aniolm9/font_size
New feature: Add parameter to change font size
-rw-r--r--assets/sass/researcher.scss2
-rw-r--r--exampleSite/config.toml1
2 files changed, 3 insertions, 0 deletions
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"