diff options
-rw-r--r-- | layouts/_default/single.html | 4 |
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" . }} |