summaryrefslogtreecommitdiff
path: root/_includes/git-wiki
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2018-12-23 14:48:45 +0100
committerYehonal <yehonal.azeroth@gmail.com>2018-12-23 15:19:58 +0100
commit9730c7e0de5c7eca4c55278302f42d6a9e291983 (patch)
tree962cec4df1948d2bd206f6a142aa9463310328d4 /_includes/git-wiki
parent5052e7090d9d4440886dd262aff5491bc5107d87 (diff)
downloadwiki-9730c7e0de5c7eca4c55278302f42d6a9e291983.tar.gz
wiki-9730c7e0de5c7eca4c55278302f42d6a9e291983.tar.bz2
wiki-9730c7e0de5c7eca4c55278302f42d6a9e291983.zip
Fixed page list
# Conflicts: # README.md # index.md
Diffstat (limited to '_includes/git-wiki')
-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 %}