summaryrefslogtreecommitdiff
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
parent5052e7090d9d4440886dd262aff5491bc5107d87 (diff)
downloadwiki-9730c7e0de5c7eca4c55278302f42d6a9e291983.tar.gz
wiki-9730c7e0de5c7eca4c55278302f42d6a9e291983.tar.bz2
wiki-9730c7e0de5c7eca4c55278302f42d6a9e291983.zip
Fixed page list
# Conflicts: # README.md # index.md
-rw-r--r--404.md1
-rw-r--r--_includes/git-wiki/components/lists/page-list.html10
-rw-r--r--searchdata.js1
-rw-r--r--sitemap_full.xml1
4 files changed, 8 insertions, 5 deletions
diff --git a/404.md b/404.md
index a9eb79f..be7e403 100644
--- a/404.md
+++ b/404.md
@@ -1,6 +1,7 @@
---
permalink: /404.html
layout: null
+is_wiki_page: false
---
<!-- redirect to page creator if not exists -->
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 %}
diff --git a/searchdata.js b/searchdata.js
index bb6eb25..6234099 100644
--- a/searchdata.js
+++ b/searchdata.js
@@ -1,5 +1,6 @@
---
layout: null
+is_wiki_page: false
---
var jsondata=[
diff --git a/sitemap_full.xml b/sitemap_full.xml
index 5118304..0dc9970 100644
--- a/sitemap_full.xml
+++ b/sitemap_full.xml
@@ -1,6 +1,7 @@
---
layout: none
sitemap: false
+is_wiki_page: false
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">