mirror of
https://github.com/clockworkpi/wiki.clockworkpi.com.git
synced 2026-03-19 02:12:40 +01:00
Issue #7 List of redirections
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
{%- include /functions/wiki-pages.html -%}
|
||||
{%- assign redirect = page.redirect | liquify -%}
|
||||
|
||||
{%- if include.page -%}
|
||||
{%- assign source_page = include.source_page -%}
|
||||
{%- else -%}
|
||||
{%- assign source_page = page -%}
|
||||
{%- endif -%}
|
||||
|
||||
{%- assign redirect = source_page.redirect | liquify -%}
|
||||
{%- for other_page in wiki_pages -%}
|
||||
{%- if other_page.slug == redirect -%}
|
||||
{%- if other_page.id == redirect -%}
|
||||
{%- assign redirect_page = other_page -%}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<li id="n-tag-{{ tag }}"><a href="/{{ site.data.i18n[site.lang].prefix.tag }}{{ tag }}.html">{{ tag }}</a></li>
|
||||
<ul>
|
||||
{%- for other_page in wiki_pages -%}
|
||||
{%- if other_page.tags contains tag and other_page.slug != page.slug -%}
|
||||
{%- if other_page.tags contains tag and other_page.id != page.id -%}
|
||||
<li><a href="{{ other_page.url }}.html">{{ other_page.title }}</a></li>
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
|
||||
Reference in New Issue
Block a user