diff options
author | Curtis Timson <curt@live.co.uk> | 2018-02-10 22:05:23 +0300 |
---|---|---|
committer | Curtis Timson <curt@live.co.uk> | 2018-02-10 22:05:23 +0300 |
commit | ccdb81789759b1a83dcb81de92bc532585525306 (patch) | |
tree | d0bfec705cb2f957b6b71e3ab4ff0a9912626782 | |
parent | 82e4f79e5261dabd0668ad35405aeb925138c192 (diff) |
:bug: Fix #11 - no recent posts on blog page
-rw-r--r-- | layouts/partials/footer/recentposts.html | 2 | ||||
-rw-r--r-- | package.json | 2 |
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": { |