added option to make article title in single bigger

This commit is contained in:
Gabriele Musco 2021-04-19 12:01:09 +02:00
parent 5bb25de4f9
commit 0be6633185
No known key found for this signature in database
GPG Key ID: 8539FD3454380B83
3 changed files with 10 additions and 1 deletions

View File

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

View File

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

View File

@ -1,6 +1,6 @@
{{ define "main" }}
{{- partial "inject/content-before.html" . -}}
<article class="card {{ if .Site.Params.discreteCards }}discrete{{ end }}">
<article class="card {{ if .Site.Params.discreteCards }}discrete{{ end }} single">
<h1>{{ .Title }}</h1>
<p class="date">
<span title="Date"></span>