From de8c3dcef343ed51aec5b90c81ce60f7b5d1feea Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Wed, 9 Jun 2021 22:35:33 +0200 Subject: [PATCH] added option to set a different font for titles and headings --- README.md | 1 + assets/scss/style.scss | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index bb83703..94bc3e8 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ summaryLength = 70 # number of words for article summaries navtype = "standard" # changes the style of the pagination, available styles are: "standard", "circles" fontFamily = "JetBrains Mono" # changes the font, default "JetBrains Mono" + titleFontFamily = "JetBrains Mono" # font used for titles and headings monospaceFontFamily = "JetBrains Mono" # changes the monospace font for code, default "JetBrains Mono" contentWidth = "1000px" # maximum width of the site content, css syntax diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 3885e5b..d50dfd9 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -4,6 +4,7 @@ $dim_fg_color: {{ .Site.Params.dimForegroundColor | default "#bababa" }}; $stroke_color: {{ .Site.Params.strokeColor | default "#4f4f4f" }}; $accent_color: {{ .Site.Params.accentColor | default "#db5793" }}; $main_font: {{ .Site.Params.fontFamily | default "JetBrains Mono" }}; +$title_font: {{ .Site.Params.titleFontFamily | default "JetBrains Mono" }}; $mono_font: {{ .Site.Params.monospaceFontFamily | default "JetBrains Mono" }}; $highlight_bg_color: {{ .Site.Params.highlightBgColor | default "#34363b" }}; $content_width: {{ .Site.Params.contentWidth | default "1000px" }}; @@ -158,6 +159,7 @@ pre code { } h1, h2, h3, h4, h5, h6 { + font-family: $title_font; a { color: $accent_color; border-bottom: none;