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

gitlab.com/toryanderson/hugo-icarus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordigitalcraftsman <digitalcraftsman@protonmail.com>2017-04-01 00:25:34 +0300
committerdigitalcraftsman <digitalcraftsman@protonmail.com>2017-04-01 00:25:34 +0300
commitd56eaa7995b7aa32965b1a6308d4c87b79aa9434 (patch)
tree1c04833d28e160bb379103c6280fa274ad759571
parent329d0e9bc3111aa4821d7d17bedc5f0bb95cd380 (diff)
Fix pages count by only using .RegularPages
-rw-r--r--layouts/partials/profile.html2
-rw-r--r--layouts/partials/widgets/recent_articles.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/profile.html b/layouts/partials/profile.html
index 24272e7..8b4089c 100644
--- a/layouts/partials/profile.html
+++ b/layouts/partials/profile.html
@@ -13,7 +13,7 @@
</div>
<div class="article-info profile-block">
<div class="article-info-block">
- {{ len (where .Site.Pages "Type" "post") }}
+ {{ len (where .Site.RegularPages "Type" "post") }}
<span>{{with .Site.Data.l10n.profile.posts}}{{.}}{{end}}</span>
</div>
<div class="article-info-block">
diff --git a/layouts/partials/widgets/recent_articles.html b/layouts/partials/widgets/recent_articles.html
index 5ea84d8..80f0a41 100644
--- a/layouts/partials/widgets/recent_articles.html
+++ b/layouts/partials/widgets/recent_articles.html
@@ -5,7 +5,7 @@
</h3>
<div class="widget">
<ul id="recent-post">
- {{ range first 5 (where .Site.Pages "Type" "post") }}
+ {{ range first 5 (where .Site.RegularPages "Type" "post") }}
<li>
<div class="item-thumbnail">
<a href="{{ .Permalink }}" class="thumbnail">