summaryrefslogtreecommitdiff
path: root/_includes/git-wiki/sections
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2020-01-12 19:26:36 +0100
committerYehonal <yehonal.azeroth@gmail.com>2020-01-12 19:26:36 +0100
commitee8613b3383f896aaf49fb693d20761c90bec0ec (patch)
treeced5c72dc4b61c68d2c5f8ec9f4b00c3367652de /_includes/git-wiki/sections
parent33429ab077e1739bd616d637c3beed863c7d1cfc (diff)
parent865e801950d4062fcab0a9a2de0bce3b8b2e39e4 (diff)
downloadwiki-ee8613b3383f896aaf49fb693d20761c90bec0ec.tar.gz
wiki-ee8613b3383f896aaf49fb693d20761c90bec0ec.tar.bz2
wiki-ee8613b3383f896aaf49fb693d20761c90bec0ec.zip
Merge branch 'master' of https://github.com/Drassil/git-wiki-theme
Diffstat (limited to '_includes/git-wiki/sections')
-rw-r--r--_includes/git-wiki/sections/head/scripts.html2
-rw-r--r--_includes/git-wiki/sections/header/header.html2
-rw-r--r--_includes/git-wiki/sections/tail/tail.html12
3 files changed, 14 insertions, 2 deletions
diff --git a/_includes/git-wiki/sections/head/scripts.html b/_includes/git-wiki/sections/head/scripts.html
index 9cf23f3..9497626 100644
--- a/_includes/git-wiki/sections/head/scripts.html
+++ b/_includes/git-wiki/sections/head/scripts.html
@@ -4,7 +4,7 @@
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
-<script src="{{ '/assets/js/red-links.js' | relative_url }}"></script>
+<script src="{{ '/assets/js/checkLinks.js' | relative_url }}"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
diff --git a/_includes/git-wiki/sections/header/header.html b/_includes/git-wiki/sections/header/header.html
index 38ec85b..ffbea44 100644
--- a/_includes/git-wiki/sections/header/header.html
+++ b/_includes/git-wiki/sections/header/header.html
@@ -2,7 +2,7 @@
<button class="w3-button w3-teal" onclick="sidebar_toggle()">&#9776;</button>
<a href="{{ '/' | relative_url }}">
{% if site.logo_url %}
- <img src="{{ site.logo_url }}" width="20px">
+ <img src="{{ site.logo_url | relative_url }}" width="20px">
{% endif %}
{{ site.title | escape }}
</a>
diff --git a/_includes/git-wiki/sections/tail/tail.html b/_includes/git-wiki/sections/tail/tail.html
index 692867f..f5944c9 100644
--- a/_includes/git-wiki/sections/tail/tail.html
+++ b/_includes/git-wiki/sections/tail/tail.html
@@ -18,6 +18,18 @@
</script>
{% endif %}
+{% assign items = site.html_pages %}
+{% for page in items %}
+{% assign url = page.url | relative_url %}
+{% assign urls = urls | append: url | append: "," %}
+{% endfor %}
+
+<script type="text/javascript">
+ $(document).ready(function () {
+ $(document.body).checkLinks("{{ urls }}".split(","));
+ });
+</script>
+
{% if site.inc_after_tail %}
{% include {{ site.inc_after_tail }} %}
{% endif %}