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

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruPagge <git@upagge.ru>2021-03-20 01:10:18 +0300
committeruPagge <git@upagge.ru>2021-03-20 01:10:18 +0300
commitf23bd29e5f0af645beedc3527eda6735730a1ae4 (patch)
tree5989d366304e9a80d3f1d1f1bbe0fb1c4dd1f7a7 /layouts
parent7f0e126f1e20cdc3ddbb104ec3288608a63b1d26 (diff)
hidden post article
Diffstat (limited to 'layouts')
-rw-r--r--layouts/posts/single.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 5cf909a..d8c5c65 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -72,7 +72,10 @@
{{ $author = index .Site.Data.authors $authorName }}
{{ end }}
+ {{ $postArticle := $params.seo.postArticle | default true }}
+ {{ if $postArticle }}
<article>
+ {{ end }}
<header class="header-post">
@@ -277,7 +280,9 @@
<div id="toc-final"></div>
</div>
+ {{ if $postArticle }}
</article>
+ {{ end }}
{{- if not $params.hiddenUnderPost -}}
{{- partial "under-post.html" . -}}
@@ -303,7 +308,7 @@
{{- end -}}
</div>
-{{ if ne $viewCounter nil}}
+{{ if ne $viewCounter nil }}
<script>
document.addEventListener('DOMContentLoaded', function () {
const host = '{{ $viewCounter.url }}';