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

github.com/calintat/minimal.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcalintat <calintat@gmail.com>2017-07-09 14:06:32 +0300
committercalintat <calintat@gmail.com>2017-07-09 14:13:42 +0300
commitc47e7275d7803ffb7ef73686eaa7047461e1c18b (patch)
treef6819ca51ea5a8cd463925a7672d44881a814bce
parent226b756916e9d6754d3e8acda5cb766707acc205 (diff)
Small change to single template
-rw-r--r--layouts/_default/single.html2
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 }}