added option to set a different font for titles and headings

This commit is contained in:
Gabriele Musco 2021-06-09 22:35:33 +02:00
parent 5ee2f2a18b
commit de8c3dcef3
No known key found for this signature in database
GPG Key ID: 8539FD3454380B83
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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;