diff options
author | Ailin Nemui <ailin@z30a.localdomain> | 2018-04-03 16:11:02 +0200 |
---|---|---|
committer | Ailin Nemui <ailin@z30a.localdomain> | 2018-04-03 16:11:02 +0200 |
commit | 2791fc0c9f80e6a89a6c874f0f47f26b2112e2a2 (patch) | |
tree | 968942e642555fe0b789c54f93a139ebdaa10ade /_includes | |
parent | 3a139e5bead1f7a88a46b9a45f442a55e6153587 (diff) | |
download | irssi.github.io-2791fc0c9f80e6a89a6c874f0f47f26b2112e2a2.zip |
special case symlink source link
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/footer.html | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/_includes/footer.html b/_includes/footer.html index 44d60c1..2c57144 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -4,7 +4,22 @@ All the content of this site is copyright © 2000-{{ 'now' | date: "%Y" }} <a href="https://github.com/irssi">The Irssi project</a>.   - <a href="{% if site.github %}{{ site.github.tar_url | replace_first: '/tarball/', '/tree/' }}{% else %}file://{{ site.source }}{% endif %}/{% if page.relative_path %}{{ page.relative_path }}{% elsif paginator and paginator.page > 1 %}{% assign temp0 = "/" | append: paginator.page | append: "/" %}{{ page.path | replace_first: temp0, "/" }}{% else %}{{ page.path }}{% endif %}">Source file</a>. + <a href="{% if site.github + %}{{ site.github.tar_url | replace_first: '/tarball/', '/tree/' }}{% + else + %}file://{{ site.source }}{% + endif + %}/{% + if page.relative_path and page.collection == "security_html" + %}{{ page.relative_path | replace_first: "_security_html", "_security" }}{% + elsif page.relative_path + %}{{ page.relative_path }}{% + elsif paginator and paginator.page > 1 %}{% + assign temp0 = "/" | append: paginator.page | append: "/" + %}{{ page.path | replace_first: temp0, "/" }}{% + else + %}{{ page.path }}{% + endif %}">Source file</a>. <br/> {% if page.licence and page.licence != "" %} This page is licensed under a {{ page.licence | markdownify | strip | split:"</p>" | join:"" | split:"<p>" }}. |