diff options
author | calintat <calintat@gmail.com> | 2017-07-09 14:06:32 +0300 |
---|---|---|
committer | calintat <calintat@gmail.com> | 2017-07-09 14:13:42 +0300 |
commit | c47e7275d7803ffb7ef73686eaa7047461e1c18b (patch) | |
tree | f6819ca51ea5a8cd463925a7672d44881a814bce | |
parent | 226b756916e9d6754d3e8acda5cb766707acc205 (diff) |
Small change to single template
-rw-r--r-- | layouts/_default/single.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 532d342..dc7d6da 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -7,7 +7,7 @@ <br> <div class="text-justify">{{ .Content }}</div> <!-- related posts with the same tags --> - {{ $related := first (.Site.Params.related | default 3) (where (where .Site.Pages.ByDate.Reverse ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }} + {{ $related := first 3 (where (where (where .Site.Pages.ByDate.Reverse ".Type" "==" "post") ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }} {{ if $related }} |