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

github.com/joway/hugo-theme-yinyang.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/single.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index a549be5..315007a 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -11,7 +11,7 @@
</div>
<header class="post-header">
<h1 class="post-title">{{ .Title }}</h1>
- {{ if eq .Type "posts"}}
+ {{ if in site.Params.mainSections .Type }}
<div class="row post-desc">
<div class="col-xs-6">
{{ if .Date }}
@@ -34,7 +34,7 @@
<div class="post-content markdown-body">
{{ .Content }}
</div>
- {{ if eq .Type "posts"}}
+ {{ if in site.Params.mainSections .Type }}
{{ partial "related.html" . }}