added option to make article title in single bigger
This commit is contained in:
parent
5bb25de4f9
commit
0be6633185
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue