summaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2020-01-12 12:35:16 +0100
committerYehonal <yehonal.azeroth@gmail.com>2020-01-12 12:35:16 +0100
commitb52d6e28f0fdb22d8e0ba2e806527612ca11927d (patch)
treefa1fbf1b62d637d90d9941dcd0b863bd5fd5ad90 /_layouts
parentfe71b57bcdf51fec4fc275d968b4377ca42b8528 (diff)
parent294bdf6c46c22e2b0ce470de8fdf41fe9bed90ea (diff)
downloadwiki-b52d6e28f0fdb22d8e0ba2e806527612ca11927d.tar.gz
wiki-b52d6e28f0fdb22d8e0ba2e806527612ca11927d.tar.bz2
wiki-b52d6e28f0fdb22d8e0ba2e806527612ca11927d.zip
Merge branch 'master' of https://github.com/Drassil/git-wiki-theme
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/azerothcore.html11
-rw-r--r--_layouts/default.html4
-rw-r--r--_layouts/git-wiki-404.html15
-rw-r--r--_layouts/git-wiki-bs-github.html10
-rw-r--r--_layouts/git-wiki-bs-lux.html10
-rw-r--r--_layouts/git-wiki-bs-united.html10
6 files changed, 29 insertions, 31 deletions
diff --git a/_layouts/azerothcore.html b/_layouts/azerothcore.html
index e12908c..3215d60 100644
--- a/_layouts/azerothcore.html
+++ b/_layouts/azerothcore.html
@@ -34,12 +34,15 @@
{% if site.inc_before_toc %}
{% include {{ site.inc_before_toc }} %}
{% endif %}
-
- <div id="git-wiki-toc"></div>
-
+
+ <div>
+ <p>Contents:</p>
+ {% include git-wiki/components/toc/toc-lib.html html=content sanitize=true class="inline_toc" id="git-wiki-toc" h_min=1 h_max=2 ordered=1 %}
+ </div>
+
{% if site.inc_after_toc %}
{% include {{ site.inc_after_toc }} %}
- {% endif %}
+ {% endif %}
{% if site.inc_before_content %}
{% include {{ site.inc_before_content }} %}
diff --git a/_layouts/default.html b/_layouts/default.html
new file mode 100644
index 0000000..feab7b6
--- /dev/null
+++ b/_layouts/default.html
@@ -0,0 +1,4 @@
+---
+title: Default
+layout: git-wiki-default
+--- \ No newline at end of file
diff --git a/_layouts/git-wiki-404.html b/_layouts/git-wiki-404.html
new file mode 100644
index 0000000..6a7b4ec
--- /dev/null
+++ b/_layouts/git-wiki-404.html
@@ -0,0 +1,15 @@
+---
+title: Not Found
+permalink: /404.html
+is_wiki_page: false
+---
+
+<!-- redirect to page creator if not exists -->
+<script type="text/javascript">
+ var filename = window.location.pathname.split('/').pop();
+ if (!filename.endsWith(".md"))
+ filename+=".md";
+
+ var url = '{{ site.github.repository_url }}/new/{{site.git_branch | escape}}?filename={{ site.wiki_folder | default: 'wiki' }}/'+filename;
+ window.location=url;
+</script> \ No newline at end of file
diff --git a/_layouts/git-wiki-bs-github.html b/_layouts/git-wiki-bs-github.html
index 8237c4b..b2b0788 100644
--- a/_layouts/git-wiki-bs-github.html
+++ b/_layouts/git-wiki-bs-github.html
@@ -33,15 +33,7 @@
<div class="git-wiki-page">
{% include git-wiki/sections/tools/tools.html %}
- {% if site.inc_before_toc %}
- {% include {{ site.inc_before_toc }} %}
- {% endif %}
-
- <div id="git-wiki-toc"></div>
-
- {% if site.inc_after_toc %}
- {% include {{ site.inc_after_toc }} %}
- {% endif %}
+ {% include git-wiki/components/toc/toc.html %}
{% if site.inc_before_content %}
{% include {{ site.inc_before_content }} %}
diff --git a/_layouts/git-wiki-bs-lux.html b/_layouts/git-wiki-bs-lux.html
index 04085e4..5cc4a27 100644
--- a/_layouts/git-wiki-bs-lux.html
+++ b/_layouts/git-wiki-bs-lux.html
@@ -46,15 +46,7 @@
<div class="git-wiki-page">
{% include git-wiki/sections/tools/tools.html %}
- {% if site.inc_before_toc %}
- {% include {{ site.inc_before_toc }} %}
- {% endif %}
-
- <div id="git-wiki-toc"></div>
-
- {% if site.inc_after_toc %}
- {% include {{ site.inc_after_toc }} %}
- {% endif %}
+ {% include git-wiki/components/toc/toc.html %}
{% if site.inc_before_content %}
{% include {{ site.inc_before_content }} %}
diff --git a/_layouts/git-wiki-bs-united.html b/_layouts/git-wiki-bs-united.html
index 2130a9a..556bcd3 100644
--- a/_layouts/git-wiki-bs-united.html
+++ b/_layouts/git-wiki-bs-united.html
@@ -32,15 +32,7 @@
<div class="git-wiki-page">
{% include git-wiki/sections/tools/tools.html %}
- {% if site.inc_before_toc %}
- {% include {{ site.inc_before_toc }} %}
- {% endif %}
-
- <div id="git-wiki-toc"></div>
-
- {% if site.inc_after_toc %}
- {% include {{ site.inc_after_toc }} %}
- {% endif %}
+ {% include git-wiki/components/toc/toc.html %}
{% if site.inc_before_content %}
{% include {{ site.inc_before_content }} %}