fixes english links
This commit is contained in:
parent
1da6926b92
commit
9307cbdff5
3 changed files with 8 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ authors = []
|
||||||
template = "blog-page.html"
|
template = "blog-page.html"
|
||||||
[extra]
|
[extra]
|
||||||
lang = "fr"
|
lang = "fr"
|
||||||
|
en.title = "Why am I publishing under a non-FLOSS license?"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
Un sujet interessant et controversé, hein ? Absolument !
|
Un sujet interessant et controversé, hein ? Absolument !
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,14 @@
|
||||||
{%- for page in section.pages %}
|
{%- for page in section.pages %}
|
||||||
{%- if loop.index <= 5 %}
|
{%- if loop.index <= 5 %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ page.permalink | safe }}">{{ page.date ~ "// " ~ page.title }}</a>
|
{% if lang == "en" %}
|
||||||
|
<a href="{{ get_url(path=page.path, lang=lang) | safe }}">{{ page.date ~ "// " ~ page.extra.en.title }}</a>
|
||||||
|
{% else %}
|
||||||
|
<a href="{{ get_url(path=page.path, lang=lang) | safe }}">{{ page.date ~ "// " ~ page.title }}</a>
|
||||||
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
<a href="{{ section.permalink | safe }}">{{ trans(key="read-more", lang=lang) | default (value="📄 See the complete list...") }}</a>
|
<a href="{{ get_url(path=section.path, lang=lang) | safe }}">{{ trans(key="read-more", lang=lang) | default (value="📄 See the complete list...") }}</a>
|
||||||
{% break %}
|
{% break %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
<ul class="title-list">
|
<ul class="title-list">
|
||||||
{% for page in pages %}
|
{% for page in pages %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ page.permalink | safe }}">{{ page.date ~ "// " ~ page.title }}</a>
|
<a href="{{ get_url(path=page.path, lang=lang) | safe }}">{{ page.date ~ "// " ~ page.title }}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue