diff options
Diffstat (limited to '_includes/git-wiki/sections')
| -rw-r--r-- | _includes/git-wiki/sections/head/scripts.html | 2 | ||||
| -rw-r--r-- | _includes/git-wiki/sections/header/header.html | 2 | ||||
| -rw-r--r-- | _includes/git-wiki/sections/tail/tail.html | 12 |
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()">☰</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 %} |
