aboutsummaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-12-15 16:08:03 -0300
committerEuAndreh <eu@euandre.org>2020-12-15 16:08:03 -0300
commitb03a81affc1e40cb0a2426ba914641f607a45dcc (patch)
treeb6cce24ffb3931ba3daf3ceca158ced03365f54a /_layouts
parentTIL on Awk: Add update section with POSIX Awk version (diff)
downloadeuandre.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.html63
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] }} %}">&lt;web&gt;EuAndreh&lt;/web&gt;</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>