summaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
Diffstat (limited to '_includes')
-rw-r--r--_includes/git-wiki/components/action_btn/downloads.html (renamed from _includes/gw_header/downloads.html)0
-rw-r--r--_includes/git-wiki/components/action_btn/page_actions.html (renamed from _includes/gw_tools/page_actions.html)17
-rw-r--r--_includes/git-wiki/components/copyrights/copyrights.html9
-rw-r--r--_includes/git-wiki/components/lists/page-list.html26
-rw-r--r--_includes/git-wiki/components/lists/post-list.html26
-rw-r--r--_includes/git-wiki/components/logo/logo.html (renamed from _includes/gw_header/logo.html)0
-rw-r--r--_includes/git-wiki/components/search/index.html7
-rw-r--r--_includes/git-wiki/components/search/se_github.html (renamed from _includes/gw_tools/search_github.html)0
-rw-r--r--_includes/git-wiki/components/search/se_google.html (renamed from _includes/gw_tools/search_google.html)0
-rw-r--r--_includes/git-wiki/components/search/se_js.html (renamed from _includes/gw_tools/search_js.html)0
-rw-r--r--_includes/git-wiki/defines/defines.html (renamed from _includes/gw_defines/defines.html)0
-rw-r--r--_includes/git-wiki/sections/content/body.html5
-rw-r--r--_includes/git-wiki/sections/content/content.html (renamed from _includes/gw_content/content.html)2
-rw-r--r--_includes/git-wiki/sections/content/wrapper.html5
-rw-r--r--_includes/git-wiki/sections/footer/footer.html11
-rw-r--r--_includes/git-wiki/sections/head/head.html (renamed from _includes/gw_head/head.html)6
-rw-r--r--_includes/git-wiki/sections/head/meta.html (renamed from _includes/gw_head/meta.html)0
-rw-r--r--_includes/git-wiki/sections/head/scripts.html (renamed from _includes/gw_head/scripts.html)0
-rw-r--r--_includes/git-wiki/sections/head/styles.html (renamed from _includes/gw_head/styles.html)0
-rw-r--r--_includes/git-wiki/sections/header/header.html (renamed from _includes/gw_header/header.html)12
-rw-r--r--_includes/git-wiki/sections/tail/tail.html (renamed from _includes/gw_tail/tail.html)0
-rw-r--r--_includes/git-wiki/sections/tools/tools.html (renamed from _includes/gw_tools/tools.html)4
-rw-r--r--_includes/gw_content/body.html5
-rw-r--r--_includes/gw_content/wrapper.html5
-rw-r--r--_includes/gw_footer/footer.html19
-rw-r--r--_includes/gw_tools/search_module.html3
26 files changed, 117 insertions, 45 deletions
diff --git a/_includes/gw_header/downloads.html b/_includes/git-wiki/components/action_btn/downloads.html
index 8f654f9..8f654f9 100644
--- a/_includes/gw_header/downloads.html
+++ b/_includes/git-wiki/components/action_btn/downloads.html
diff --git a/_includes/gw_tools/page_actions.html b/_includes/git-wiki/components/action_btn/page_actions.html
index 40cbb92..af5a41f 100644
--- a/_includes/gw_tools/page_actions.html
+++ b/_includes/git-wiki/components/action_btn/page_actions.html
@@ -1,4 +1,3 @@
-{{page.relative_path}}
{% if site.use_github_wiki %}
<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/_new">Add new</a></span>
<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/{{url | remove: '.html' | append: ''}}/_edit">Edit</a></span>
@@ -7,10 +6,18 @@
{% else %}
<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/new/{{site.git_branch}}?filename={{ site.wiki_folder | default: 'wiki' }}/">Add new</a></span>
<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/edit/{{site.git_branch}}{{page.folder}}{{url | remove: '.html' | append: '.md'}}">Edit</a></span>
-{% if site.use_prose_io %}
-<span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/new/{{site.git_branch}}/{{ site.wiki_folder | default: 'wiki' }}">Add with Prose.io</a></span>
-<span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/edit/{{site.git_branch}}{{page.folder}}{{url | remove: '.html' | append: '.md'}}">Edit with Prose.io</a></span>
-{% endif %}
<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/commits/{{site.git_branch}}{{page.folder}}{{url | remove: '.html' | append: '.md'}}">History</a></span>
<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/blob/{{site.git_branch}}{{page.folder}}{{url | remove: '.html' | append: '.md'}}">Source</a></span>
+{% if site.blog_feature %}
+<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/new/{{site.git_branch}}?filename=_posts/">Add new post</a></span>
+{% endif %}
+ {% if site.use_prose_io %}
+ <br>
+ Prose.io:
+ <span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/new/{{site.git_branch}}/{{ site.wiki_folder | default: 'wiki' }}">Add new</a></span>
+ <span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/edit/{{site.git_branch}}{{page.folder}}{{url | remove: '.html' | append: '.md'}}">Edit</a></span>
+ {% if site.blog_feature %}
+ <span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/new/{{site.git_branch}}/_posts/">Add new post</a></span>
+ {% endif %}
+ {% endif %}
{% endif %} \ No newline at end of file
diff --git a/_includes/git-wiki/components/copyrights/copyrights.html b/_includes/git-wiki/components/copyrights/copyrights.html
new file mode 100644
index 0000000..d53ff75
--- /dev/null
+++ b/_includes/git-wiki/components/copyrights/copyrights.html
@@ -0,0 +1,9 @@
+{% if site.github.is_project_page %}
+<p>This project is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
+{% endif %}
+<p><small>Hosted on GitHub Pages &mdash; Powered by <a href="https://github.com/Drassil/git-wiki">Git-Wiki v{{
+ version }}</a> </p>
+
+{% if site.github.is_project_page %}
+<p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub <small>{{ github_name }}</small></a></p>
+{% endif %} \ No newline at end of file
diff --git a/_includes/git-wiki/components/lists/page-list.html b/_includes/git-wiki/components/lists/page-list.html
new file mode 100644
index 0000000..8c32b63
--- /dev/null
+++ b/_includes/git-wiki/components/lists/page-list.html
@@ -0,0 +1,26 @@
+{% if site.inc_before_page_list %}
+{% include {{ site.inc_before_page_list }} %}
+{% endif %}
+
+<span class="page-list-title">Pages {% if (site.show_wiki_pages_limit >= 1 %} (Latest {{site.show_wiki_pages_limit }} updated) {% endif %}:</span>
+<ul class="page-list">
+{% assign numPages=0 %}
+{% assign items = site.pages | sort: 'date' %}
+{% for post in items %}
+{% if numPages >= site.show_wiki_pages_limit %}
+ {% break %}
+{% endif %}
+
+{% if post.layout != "null" and post.sitemap != false and post.title %}
+ <li class="page-list-item">
+ <a href="{{ post.url | relative_url }}">{{ post.title}}</a>
+ </li>
+ {% assign numPages = numPages | plus: 1 %}
+{% endif %}
+
+{% endfor %}
+</ul>
+
+{% if site.inc_after_page_list %}
+{% include {{ site.inc_after_page_list }} %}
+{% endif %} \ No newline at end of file
diff --git a/_includes/git-wiki/components/lists/post-list.html b/_includes/git-wiki/components/lists/post-list.html
new file mode 100644
index 0000000..5e39359
--- /dev/null
+++ b/_includes/git-wiki/components/lists/post-list.html
@@ -0,0 +1,26 @@
+{% if site.inc_before_post_list %}
+{% include {{ site.inc_before_post_list }} %}
+{% endif %}
+
+<span class="post-list-title">Posts {% if (site.show_wiki_post_limit >= 1 %} (Latest {{site.show_wiki_post_limit }} updated) {% endif %}:</span>
+<ul class="post-list">
+{% assign numPages=0 %}
+{% assign items = site.posts | sort: 'date' %}
+{% for post in items %}
+{% if numPages >= site.show_wiki_post_limit %}
+ {% break %}
+{% endif %}
+
+{% if post.layout != "null" and post.sitemap != false and post.title %}
+ <li class="post-list-item">
+ <a href="{{ post.url | relative_url }}">{{ post.title}}</a>
+ </li>
+ {% assign numPages = numPages | plus: 1 %}
+{% endif %}
+
+{% endfor %}
+</ul>
+
+{% if site.inc_after_post_list %}
+{% include {{ site.inc_after_post_list }} %}
+{% endif %} \ No newline at end of file
diff --git a/_includes/gw_header/logo.html b/_includes/git-wiki/components/logo/logo.html
index a4a36c3..a4a36c3 100644
--- a/_includes/gw_header/logo.html
+++ b/_includes/git-wiki/components/logo/logo.html
diff --git a/_includes/git-wiki/components/search/index.html b/_includes/git-wiki/components/search/index.html
new file mode 100644
index 0000000..8af31e8
--- /dev/null
+++ b/_includes/git-wiki/components/search/index.html
@@ -0,0 +1,7 @@
+{% comment %}
+ This component just select your preferred search engine based on _config.yml value
+{% endcomment %}
+
+{% assign se = site.search_engine | default: "github" %}
+{% assign file = "git-wiki/components/search/se_" | append: se | append: ".html" %}
+{% include {{file}} %} \ No newline at end of file
diff --git a/_includes/gw_tools/search_github.html b/_includes/git-wiki/components/search/se_github.html
index efcc5e8..efcc5e8 100644
--- a/_includes/gw_tools/search_github.html
+++ b/_includes/git-wiki/components/search/se_github.html
diff --git a/_includes/gw_tools/search_google.html b/_includes/git-wiki/components/search/se_google.html
index 0c3e675..0c3e675 100644
--- a/_includes/gw_tools/search_google.html
+++ b/_includes/git-wiki/components/search/se_google.html
diff --git a/_includes/gw_tools/search_js.html b/_includes/git-wiki/components/search/se_js.html
index 9e75464..9e75464 100644
--- a/_includes/gw_tools/search_js.html
+++ b/_includes/git-wiki/components/search/se_js.html
diff --git a/_includes/gw_defines/defines.html b/_includes/git-wiki/defines/defines.html
index 43aea6d..43aea6d 100644
--- a/_includes/gw_defines/defines.html
+++ b/_includes/git-wiki/defines/defines.html
diff --git a/_includes/git-wiki/sections/content/body.html b/_includes/git-wiki/sections/content/body.html
new file mode 100644
index 0000000..419eeaf
--- /dev/null
+++ b/_includes/git-wiki/sections/content/body.html
@@ -0,0 +1,5 @@
+<body>
+ {% include git-wiki/sections/content/wrapper.html %}
+
+ {% include git-wiki/sections/tail/tail.html %}
+</body> \ No newline at end of file
diff --git a/_includes/gw_content/content.html b/_includes/git-wiki/sections/content/content.html
index 347f69d..b86a729 100644
--- a/_includes/gw_content/content.html
+++ b/_includes/git-wiki/sections/content/content.html
@@ -1,5 +1,5 @@
<section>
- {% include gw_tools/tools.html %}
+ {% include git-wiki/sections/tools/tools.html %}
{% if site.inc_before_toc %}
{% include {{ site.inc_before_toc }} %}
diff --git a/_includes/git-wiki/sections/content/wrapper.html b/_includes/git-wiki/sections/content/wrapper.html
new file mode 100644
index 0000000..eab823f
--- /dev/null
+++ b/_includes/git-wiki/sections/content/wrapper.html
@@ -0,0 +1,5 @@
+<div class="wrapper">
+ {% include git-wiki/sections/header/header.html %}
+ {% include git-wiki/sections/content/content.html %}
+ {% include git-wiki/sections/footer/footer.html %}
+</div> \ No newline at end of file
diff --git a/_includes/git-wiki/sections/footer/footer.html b/_includes/git-wiki/sections/footer/footer.html
new file mode 100644
index 0000000..f49703b
--- /dev/null
+++ b/_includes/git-wiki/sections/footer/footer.html
@@ -0,0 +1,11 @@
+<footer>
+ {% if site.inc_before_footer %}
+ {% include {{ site.inc_before_footer }} %}
+ {% endif %}
+
+ {% include git-wiki/components/copyrights/copyrights.html %}
+
+ {% if site.inc_after_footer %}
+ {% include {{ site.inc_after_footer }} %}
+ {% endif %}
+</footer> \ No newline at end of file
diff --git a/_includes/gw_head/head.html b/_includes/git-wiki/sections/head/head.html
index cf82bd9..dab9a86 100644
--- a/_includes/gw_head/head.html
+++ b/_includes/git-wiki/sections/head/head.html
@@ -3,9 +3,9 @@
{% include {{ site.inc_before_head }} %}
{% endif %}
- {% include gw_head/meta.html %}
- {% include gw_head/scripts.html %}
- {% include gw_head/styles.html %}
+ {% include git-wiki/sections/head/meta.html %}
+ {% include git-wiki/sections/head/scripts.html %}
+ {% include git-wiki/sections/head/styles.html %}
{% if site.inc_after_head %}
{% include {{ site.inc_after_head }} %}
diff --git a/_includes/gw_head/meta.html b/_includes/git-wiki/sections/head/meta.html
index bfae3da..bfae3da 100644
--- a/_includes/gw_head/meta.html
+++ b/_includes/git-wiki/sections/head/meta.html
diff --git a/_includes/gw_head/scripts.html b/_includes/git-wiki/sections/head/scripts.html
index 65ee4ff..65ee4ff 100644
--- a/_includes/gw_head/scripts.html
+++ b/_includes/git-wiki/sections/head/scripts.html
diff --git a/_includes/gw_head/styles.html b/_includes/git-wiki/sections/head/styles.html
index 3bb7ecc..3bb7ecc 100644
--- a/_includes/gw_head/styles.html
+++ b/_includes/git-wiki/sections/head/styles.html
diff --git a/_includes/gw_header/header.html b/_includes/git-wiki/sections/header/header.html
index b89abf9..34f21dd 100644
--- a/_includes/gw_header/header.html
+++ b/_includes/git-wiki/sections/header/header.html
@@ -4,7 +4,7 @@
{% endif %}
{% if site.logo_url %}
- {% include gw_header/logo.html %}
+ {% include git-wiki/components/logo/logo.html %}
{% endif %}
{% if site.github.is_user_page %}
@@ -12,7 +12,15 @@
{% endif %}
{% if site.show_downloads %}
- {% include gw_header/downloads.html %}
+ {% include git-wiki/components/action_btn/downloads.html %}
+ {% endif %}
+
+ {% if site.show_wiki_pages %}
+ {% include git-wiki/components/lists/page-list.html %}
+ {% endif %}
+
+ {% if site.blog_feature and site.show_wiki_posts %}
+ {% include git-wiki/components/lists/post-list.html %}
{% endif %}
{% if site.inc_after_header %}
diff --git a/_includes/gw_tail/tail.html b/_includes/git-wiki/sections/tail/tail.html
index e86191c..e86191c 100644
--- a/_includes/gw_tail/tail.html
+++ b/_includes/git-wiki/sections/tail/tail.html
diff --git a/_includes/gw_tools/tools.html b/_includes/git-wiki/sections/tools/tools.html
index c0b50f7..0b2770e 100644
--- a/_includes/gw_tools/tools.html
+++ b/_includes/git-wiki/sections/tools/tools.html
@@ -3,9 +3,9 @@
{% include {{ site.inc_before_tools }} %}
{% endif %}
- {% include gw_tools/page_actions.html %}
+ {% include git-wiki/components/action_btn/page_actions.html %}
- {% include gw_tools/search_module.html %}
+ {% include git-wiki/components/search/index.html %}
{% if site.inc_after_tools %}
{% include {{ site.inc_after_tools }} %}
diff --git a/_includes/gw_content/body.html b/_includes/gw_content/body.html
deleted file mode 100644
index 5edfa9b..0000000
--- a/_includes/gw_content/body.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<body>
- {% include gw_content/wrapper.html %}
-
- {% include gw_tail/tail.html %}
-</body> \ No newline at end of file
diff --git a/_includes/gw_content/wrapper.html b/_includes/gw_content/wrapper.html
deleted file mode 100644
index 9fb0223..0000000
--- a/_includes/gw_content/wrapper.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<div class="wrapper">
- {% include gw_header/header.html %}
- {% include gw_content/content.html %}
- {% include gw_footer/footer.html %}
-</div> \ No newline at end of file
diff --git a/_includes/gw_footer/footer.html b/_includes/gw_footer/footer.html
deleted file mode 100644
index 7aed17c..0000000
--- a/_includes/gw_footer/footer.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<footer>
- {% if site.inc_before_footer %}
- {% include {{ site.inc_before_footer }} %}
- {% endif %}
-
- {% if site.github.is_project_page %}
- <p>This project is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
- {% endif %}
- <p><small>Hosted on GitHub Pages &mdash; Powered by <a href="https://github.com/Drassil/git-wiki">Git-Wiki v{{
- version }}</a> </p>
-
- {% if site.github.is_project_page %}
- <p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub <small>{{ github_name }}</small></a></p>
- {% endif %}
-
- {% if site.inc_after_footer %}
- {% include {{ site.inc_after_footer }} %}
- {% endif %}
-</footer> \ No newline at end of file
diff --git a/_includes/gw_tools/search_module.html b/_includes/gw_tools/search_module.html
deleted file mode 100644
index 7664e19..0000000
--- a/_includes/gw_tools/search_module.html
+++ /dev/null
@@ -1,3 +0,0 @@
-{% assign se = site.search_engine | default: "github" %}
-{% assign file = "gw_tools/search_" | append: se | append: ".html" %}
-{% include {{file}} %} \ No newline at end of file