summaryrefslogtreecommitdiff
path: root/_includes/git-wiki/components
diff options
context:
space:
mode:
Diffstat (limited to '_includes/git-wiki/components')
-rw-r--r--_includes/git-wiki/components/lists/page-list.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/_includes/git-wiki/components/lists/page-list.html b/_includes/git-wiki/components/lists/page-list.html
index 5fb118d..dea6758 100644
--- a/_includes/git-wiki/components/lists/page-list.html
+++ b/_includes/git-wiki/components/lists/page-list.html
@@ -7,15 +7,15 @@
}} updated) {% endif %}:</span>
<ul class="page-list">
{% assign numPages=0 %}
- {% assign items = site.pages | sort: 'date' %}
- {% for post in items %}
+ {% assign items = site.html_pages | sort: 'date' %}
+ {% for page in items %}
{% if numPages >= site.show_wiki_pages_limit %}
{% break %}
{% endif %}
-
- {% if post.layout != "null" and post.sitemap != false and post.title %}
+ {% if page.is_wiki_page != false and page.sitemap != false %}
<li class="page-list-item">
- <a href="{{ post.url | relative_url }}">{{ post.title}}</a>
+ {% assign title = page.title | default: page.name %}
+ <a href="{{ page.url | relative_url }}">{{title}}</a>
</li>
{% assign numPages = numPages | plus: 1 %}
{% endif %}