Fix #2 List of tags

This commit is contained in:
Alexis Hassler
2019-05-04 21:52:13 +02:00
parent 6773809206
commit 8d635a3f71
12 changed files with 101 additions and 49 deletions

View File

@@ -2,20 +2,18 @@
<head>
{% include head.html %}
</head>
<body>
<div id="main">
<h1 id="title">{{ page.title }}</h1>
<div id="content">{{ content | inject_anchors }}</div>
</div>
<div id="menu">
{% include logo.html %}
{% include user.html %}
{% include toc.html %}
{% include links.html %}
{% include tags.html %}
{%- include logo.html -%}
{%- assign menu = page.menu | default: layout.menu -%}
{%- for item in menu -%}
{%- include {{item}}.html -%}
{%- endfor -%}
</div>
{% include footer.html %}
</body>
</html>

View File

@@ -1,11 +1,9 @@
<html dir="ltr" class="client-js" lang="fr">
<html>
{%- include /functions/redirect-page.html -%}
<head>
{%- assign redirect_url = redirect_page.url | default: site.data.i18n[site.lang].home | append: ".html" -%}
{%- include head.html redirect_url = redirect_url -%}
</head>
<body>
<div id="main">
<h1 id="title">{{ redirect_page.title }}</h1>
@@ -18,7 +16,6 @@
</div>
</div>
</div>
<div id="menu">
{%- include logo.html -%}
</div>

View File

@@ -1,4 +1,5 @@
---
layout: default
menu: ['global']
---
{{ content }}

View File

@@ -1,34 +1,20 @@
<html dir="ltr" class="client-js" lang="fr">
<head>
{% include head.html %}
</head>
<body>
<div id="main">
<h1 id="title">{{ page.tags }}</h1>
<div id="content">
{{ content | inject_anchors }}
</div>
<div id="pages">
<h3>{{ site.data.i18n[site.lang].label.tag_pages }} {{ page.tags }}</h3>
<div class="columns">
<ul>
{% include /functions/wiki-pages.html %}
{% for tag in page.tags %}
{% for other_page in wiki_pages %}
{% if other_page.tags contains tag and other_page.slug != page.slug %}
<li><a href="{{ other_page.url }}">{{ other_page.title }}</a></li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</div>
</div>
</div>
<div id="menu">
{% include logo.html %}
</div>
{% include footer.html %}
</body>
</html>
---
layout: default
menu: ['global']
---
{{ content | inject_anchors }}
<div id="pages">
<h3>{{ site.data.i18n[site.lang].label.tag_pages }} {{ page.tags }}</h3>
<div class="columns">
<ul>
{% include /functions/wiki-pages.html %}
{% for tag in page.tags %}
{% for other_page in wiki_pages %}
{% if other_page.tags contains tag and other_page.slug != page.slug %}
<li><a href="{{ other_page.url }}">{{ other_page.title }}</a></li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</div>
</div>

View File

@@ -1,4 +1,5 @@
---
layout: default
menu: ['user', 'toc', 'links', 'tags']
---
{{ content }}