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

github.com/curttimson/hugo-theme-dopetrope.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCurtis Timson <curt@live.co.uk>2018-02-10 22:05:23 +0300
committerCurtis Timson <curt@live.co.uk>2018-02-10 22:05:23 +0300
commitccdb81789759b1a83dcb81de92bc532585525306 (patch)
treed0bfec705cb2f957b6b71e3ab4ff0a9912626782
parent82e4f79e5261dabd0668ad35405aeb925138c192 (diff)
:bug: Fix #11 - no recent posts on blog page
-rw-r--r--layouts/partials/footer/recentposts.html2
-rw-r--r--package.json2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/footer/recentposts.html b/layouts/partials/footer/recentposts.html
index 5946cb0..0ebb29b 100644
--- a/layouts/partials/footer/recentposts.html
+++ b/layouts/partials/footer/recentposts.html
@@ -4,7 +4,7 @@
<h2>{{ .Site.Params.Footer.title1 }}</h2>
</header>
<ul class="dates">
- {{ range first 5 (where .Data.Pages "Type" "post") }}
+ {{ range first 5 (where .Site.Pages "Type" "post") }}
<li>
<span class="date">{{ .Date.Format "Jan" }} <strong>{{ .Date.Format "_2" }}</strong></span>
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
diff --git a/package.json b/package.json
index 6f02769..a54632e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "hugo-theme-dopetrope",
- "version": "0.4.0",
+ "version": "0.4.1",
"description": "Hugo Theme Dopetrope",
"main": "index.js",
"scripts": {