aboutsummaryrefslogtreecommitdiff
path: root/_layouts/default.html
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-12-19 13:45:50 -0300
committerEuAndreh <eu@euandre.org>2020-12-19 13:49:07 -0300
commit155eb972fe0f4f0492899a5542a21471ad9f5948 (patch)
treefb65cf2f2f9b39afb5408ce44f4d1920e089a4e9 /_layouts/default.html
parentAdd Podcast structure, with public entrypoint commented out (diff)
downloadeuandre.org-155eb972fe0f4f0492899a5542a21471ad9f5948.tar.gz
euandre.org-155eb972fe0f4f0492899a5542a21471ad9f5948.tar.xz
Fix translation navigation link of collections
Diffstat (limited to '')
-rw-r--r--_layouts/default.html37
1 files changed, 30 insertions, 7 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
index 05ee5d1..5167523 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -47,13 +47,6 @@
</div>
{% if page.ref != nil %}
<ul>
- {% assign lposts=site.posts | where:"ref", page.ref | sort: 'lang' %}
- {% for lpost in lposts %}
- <li>
- <a href="{{ lpost.url }}" class="{{ lpost.lang }}">{{ lpost.lang }}</a>
- </li>
- {% endfor %}
-
{% if page.ref == "root" %}
{% assign lpages=site.pages | where:"ref", "index" | sort: 'lang' %}
{% else %}
@@ -65,13 +58,43 @@
</li>
{% endfor %}
+ {% assign larticles=site.articles | where:"ref", page.ref | sort: 'lang' %}
+ {% for larticle in larticles %}
+ <li>
+ <a href="{{ larticle.url }}" class="{{ larticle.lang }}">{{ larticle.lang }}</a>
+ </li>
+ {% endfor %}
+
{% assign ltils=site.tils | where:"ref", page.ref | sort: 'lang' %}
{% for ltil in ltils %}
<li>
<a href="{{ ltil.url }}" class="{{ ltil.lang }}">{{ ltil.lang }}</a>
</li>
{% endfor %}
+
+ {% assign lslidess=site.slides | where:"ref", page.ref | sort: 'lang' %}
+ {% for lslides in lslidess %}
+ <li>
+ <a href="{{ lslides.url }}" class="{{ lslides.lang }}">{{ lslides.lang }}</a>
+ </li>
+ {% endfor %}
+
+ {% assign lpastebins=site.pastebins | where:"ref", page.ref | sort: 'lang' %}
+ {% for lpastebin in lpastebins %}
+ <li>
+ <a href="{{ lpastebin.url }}" class="{{ lpastebin.lang }}">{{ lpastebin.lang }}</a>
+ </li>
+ {% endfor %}
+
+ {% assign lpodcasts=site.podcasts | where:"ref", page.ref | sort: 'lang' %}
+ {% for lpodcast in lpodcasts %}
+ <li>
+ <a href="{{ lpodcast.url }}" class="{{ lpodcast.lang }}">{{ lpodcast.lang }}</a>
+ </li>
+ {% endfor %}
</ul>
+ {% else %}
+ {% link break-build-if-any-page-has-a-missing-ref %}
{% endif %}
</nav>
</header>