diff options
author | Simon <gevhaz@tutanota.com> | 2020-06-05 13:41:46 +0300 |
---|---|---|
committer | Simon <gevhaz@tutanota.com> | 2020-06-05 13:41:46 +0300 |
commit | 17ecca0876e15dc3f8c123fae9edbbbfbfab89e7 (patch) | |
tree | aabb804d4c24286f2296ef70c1b5f3d24377fb39 | |
parent | c9080b3188d2452e06556cc3f5c43f641e2fce59 (diff) |
Text alignment depending on whether post or not
-rw-r--r-- | layouts/_default/single.html | 4 |
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 }} |