Remove html suffixes

This commit is contained in:
Alexis Hassler
2019-06-20 22:21:51 +02:00
parent a05643fc76
commit 07f1eca644
17 changed files with 55 additions and 31 deletions

View File

@@ -11,8 +11,8 @@ menu: ['global']
{%- assign page_name = page_name | append: " - " | append: page.title -%}
{%- endif -%}
<li>
<a href="{{ page.url }}.html">{{ page_name }}</a>&nbsp; [{{ page.bytes }} bytes]
{%- if page.author_full -%}&nbsp;(by <a href="{{ page.author_full.url }}.html">{{ page.author_full.name }}</a>) {%- endif -%}
<a href="{{ page.url }}">{{ page_name }}</a>&nbsp; [{{ page.bytes }} bytes]
{%- if page.author_full -%}&nbsp;(by <a href="{{ page.author_full.url }}">{{ page.author_full.name }}</a>) {%- endif -%}
</li>
{%- endfor -%}
</ul>

View File

@@ -13,6 +13,6 @@ menu: ['global']
{%- endif -%}
{%- endfor -%}
<li><a href="/{{ site.data.i18n[site.lang].prefix.tag }}{{ tag }}.html">{{ tag }}</a> ({{counter}} pages)</li>
<li><a href="/{{ site.data.i18n[site.lang].prefix.tag }}{{ tag }}">{{ tag }}</a> ({{counter}} pages)</li>
{%- endfor -%}
</ul>

View File

@@ -7,7 +7,7 @@ menu: ['global']
{%- for source_page in site.data.wiki_redirects -%}
<li>
{%- assign redirect_page = source_page.redirect_target -%}
<a href="{{ source_page.url }}.html">{{ source_page.id }}</a><a href="{{ redirect_page.url }}.html">{{ redirect_page.title }}</a>
<a href="{{ source_page.url }}">{{ source_page.id }}</a><a href="{{ redirect_page.url }}">{{ redirect_page.title }}</a>
</li>
{%- endfor -%}
</ul>

View File

@@ -6,7 +6,7 @@ menu: ['global']
<ul>
{%- for author in site.data.authors -%}
<li>
<a href="{{ author.url }}.html">{{ author.name }}</a> (<a href="{{ author.contributions_url }}.html">{{author.contributions_count}} pages</a>)
<a href="{{ author.url }}">{{ author.name }}</a> (<a href="{{ author.contributions_url }}">{{author.contributions_count}} pages</a>)
</li>
{%- endfor -%}
</ul>

View File

@@ -7,7 +7,7 @@ menu: ['global']
<ol>
{%- for page in long_pages limit:50 -%}
<li>
<a href="{{ page.url }}.html">{{ page.title }}</a>&nbsp; [{{ page.bytes }} bytes]
<a href="{{ page.url }}">{{ page.title }}</a>&nbsp; [{{ page.bytes }} bytes]
</li>
{%- endfor -%}
</ol>

View File

@@ -7,7 +7,7 @@ menu: ['global']
<ul>
{%- for page in recent_changes limit:20 -%}
<li>
<a href="{{ page.url }}.html">{{ page.title }}</a>
<a href="{{ page.url }}">{{ page.title }}</a>
&nbsp;- {{ page.modified }}
</li>
{%- endfor -%}

View File

@@ -7,7 +7,7 @@ menu: ['global']
<ol>
{%- for page in long_pages limit:50 -%}
<li>
<a href="{{ page.url }}.html">{{ page.title }}</a>&nbsp; [{{ page.bytes }} bytes]
<a href="{{ page.url }}">{{ page.title }}</a>&nbsp; [{{ page.bytes }} bytes]
</li>
{%- endfor -%}
</ol>

View File

@@ -7,14 +7,15 @@ layout: null
<title>{{ site.title }}</title>
<description>{{ site.description }}</description>
<link>{{ site.url }}</link>
{% for post in site.data.wiki_pages reversed%}
{% assign wiki_pages = site.data.wiki_pages | sort: 'created' %}
{% for post in wiki_pages reversed%}
{% unless post.draft %}
<item>
<title>{{ post.title | xml_escape }}</title>
<description>{{ post.description | xml_escape | truncate: 300 }}</description>
<description>{{ post.excerpt | strip_html }}</description>
<pubDate>{{ post.created | date_to_xmlschema }}</pubDate>
<link>{{ post.url | prepend: site.url | append: '.html'}}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.url | append: '.html' }}</guid>
<link>{{ post.url | prepend: site.url}}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.url }}</guid>
</item>
{% endunless %}
{% endfor %}

View File

@@ -4,7 +4,7 @@ title: Tags
---
<ul>
{% for tag in site.data.wiki_tags %}
<li id="n-tag-{{ tag }}"><a href="/{{ site.data.i18n[site.lang].prefix.tag }}{{ tag }}.html">{{ tag }}</a></li>
<li id="n-tag-{{ tag }}"><a href="/{{ site.data.i18n[site.lang].prefix.tag }}{{ tag }}">{{ tag }}</a></li>
<ul>
{% for other_page in site.data.wiki_pages %}
{% if other_page.tags contains tag %}