From 0be663318537d79fd066e3cff5a83a337c851230 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Mon, 19 Apr 2021 12:01:09 +0200 Subject: [PATCH] added option to make article title in single bigger --- README.md | 1 + assets/scss/style.scss | 8 ++++++++ layouts/_default/single.html | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 66b1d1d..984dd92 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ summaryLength = 70 # number of words for article summaries tagsInArticlePreview = true # enable tags list in the article preview card gridView = false # show post list as a grid. goes well with discreteCards highlightBgColor = "#34363b" # card and circle navigation background color for discrete card mode + bigArticleTitle = false # makes the title in the single article view bigger enableSearch = true # enable search page searchbarEverywhere = true # if the searchbar should be shown in every page; requires enableSearch diff --git a/assets/scss/style.scss b/assets/scss/style.scss index c8caffd..929904d 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -221,6 +221,14 @@ h1, h2, h3, h4, h5, h6 { padding: 20px; padding-top: 1px; } + + &.single { + {{ if (.Site.Params.bigArticleTitle | default false) }} + h1 { + font-size: 2.2em; + } + {{ end }} + } } .postlist { diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6233f31..1bc309e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,6 @@ {{ define "main" }} {{- partial "inject/content-before.html" . -}} -
+

{{ .Title }}