diff options
Diffstat (limited to '_layouts')
-rw-r--r-- | _layouts/default.html | 37 |
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> |