diff options
author | Joway.CI <joway.w@gmail.com> | 2019-09-07 07:15:58 +0300 |
---|---|---|
committer | Joway.CI <joway.w@gmail.com> | 2019-09-07 07:15:58 +0300 |
commit | cacd2b7d2f64e5396fa3ded98d4316d552ba55e3 (patch) | |
tree | 20643e7037137620265c2b1067aad053f0e531e3 | |
parent | 4d2a7f7ca96ec238d7e519a9a612480a33a8d03f (diff) |
fix: use mainSections
-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" . }} |