Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gevhaz/hugo-theme-notrack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon <gevhaz@tutanota.com>2020-06-05 13:41:46 +0300
committerSimon <gevhaz@tutanota.com>2020-06-05 13:41:46 +0300
commit17ecca0876e15dc3f8c123fae9edbbbfbfab89e7 (patch)
treeaabb804d4c24286f2296ef70c1b5f3d24377fb39
parentc9080b3188d2452e06556cc3f5c43f641e2fce59 (diff)
Text alignment depending on whether post or not
-rw-r--r--layouts/_default/single.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 1ed49c6..d9e5f4b 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,7 +1,11 @@
{{ define "main" }}
<main>
<article>
+ {{ if in site.Params.mainSections .Page.Section }}
<h1 class="page-title blog">{{ .Title }}</h1>
+ {{ else }}
+ <h1 class="page-title">{{ .Title }}</h1>
+ {{ end }}
{{- /* Show post information if it's a post, otherwise just the content */ -}}
{{ if in site.Params.mainSections .Page.Section }}