Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ojroques/hugo-researcher.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Roques <ojroques@users.noreply.github.com>2022-09-11 00:24:28 +0300
committerGitHub <noreply@github.com>2022-09-11 00:24:28 +0300
commitcd2233558f3ac4c552bd2d6f408c381bda26974b (patch)
tree07ae27722ab8ff98a664114062e918ff1a94989c
parent2c6c170dabf570e2787f457c66cc6488bc721876 (diff)
parentc52fdf5cbb437afc00a97db69dcbfc8645278bb5 (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"