diff options
author | EuAndreh <eu@euandre.org> | 2020-12-15 16:08:03 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-12-15 16:08:03 -0300 |
commit | b03a81affc1e40cb0a2426ba914641f607a45dcc (patch) | |
tree | b6cce24ffb3931ba3daf3ceca158ced03365f54a /_layouts | |
parent | TIL on Awk: Add update section with POSIX Awk version (diff) | |
download | euandre.org-b03a81affc1e40cb0a2426ba914641f607a45dcc.tar.gz euandre.org-b03a81affc1e40cb0a2426ba914641f607a45dcc.tar.xz |
Add pastebins to to <nav> and make <nav> CSS look better on small screens
Diffstat (limited to '')
-rw-r--r-- | _layouts/default.html | 63 |
1 files changed, 31 insertions, 32 deletions
diff --git a/_layouts/default.html b/_layouts/default.html index 704525b..cbc7eb0 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -36,42 +36,41 @@ <body> <header> <nav> - <div id="nav-left"> + <div class="nav-row"> <a href="{% link {{ site.t.articles.url[page.lang] }} %}"><web>EuAndreh</web></a> - </div> - <div id="nav-right"> - {% 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 %} - {% assign lpages=site.pages | where:"ref", page.ref | sort: 'lang' %} - {% endif %} - {% for lpage in lpages %} - <li> - <a href="{{ lpage.url }}" class="{{ lpage.lang }}">{{ lpage.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 %} - </ul> - {% endif %} <a href="{% link {{ site.t.tils.url[page.lang] }} %}">{{ site.t.tils.name[page.lang] }}</a> <a href="{% link {{ site.t.slides.url[page.lang] }} %}">{{ site.t.slides.name[page.lang] }}</a> - <a href="{% link {{ site.t.pages.about.url[page.lang] }} %}">{{ site.t.pages.about.name[page.lang] }}</a> + <a href="{% link {{ site.t.pastebins.url[page.lang] }} %}">{{ site.t.pastebins.name[page.lang] }}</a> + <a href="{% link {{ site.t.about.url[page.lang] }} %}">{{ site.t.about.name[page.lang] }}</a> </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 %} + {% assign lpages=site.pages | where:"ref", page.ref | sort: 'lang' %} + {% endif %} + {% for lpage in lpages %} + <li> + <a href="{{ lpage.url }}" class="{{ lpage.lang }}">{{ lpage.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 %} + </ul> + {% endif %} </nav> </header> |