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

github.com/ExchangeRate-API/strange-case.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Kaye <jordan.kaye2@gmail.com>2020-12-14 00:22:11 +0300
committerJordan Kaye <jordan.kaye2@gmail.com>2020-12-14 00:22:11 +0300
commita3085912f725dacb7973a4e4da0d637197e35502 (patch)
treee1e7294c3bfe3cf56af846106989756a129b4873
parent203d4932183de989a3f725458a60307b12c1c3e5 (diff)
Sidebar recent posts should be restricted to posts
-rw-r--r--layouts/partials/sidebar-content.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/layouts/partials/sidebar-content.html b/layouts/partials/sidebar-content.html
index dd714c7..6f1343d 100644
--- a/layouts/partials/sidebar-content.html
+++ b/layouts/partials/sidebar-content.html
@@ -23,13 +23,13 @@
</ul>
<div class="sidebar-recent hidden-xs">
- <p>Recent Posts:</p>
- <ul>
- {{ range first 5 .Site.Pages }}
- <li><a href="{{.Permalink}}">{{ .Title }}</a></li>
- {{ end }}
- </ul>
- </div>
+ <p>Recent Posts:</p>
+ <ul>
+ {{ range first 5 (where .Site.RegularPages "Section" "posts") }}
+ <li><a href="{{.Permalink}}">{{ .Title }}</a></li>
+ {{ end }}
+ </ul>
+ </div>
{{ if .Site.Params.contact_email }}
<div class="sidebar-contact">