diff options
Diffstat (limited to '')
-rw-r--r-- | _config.yml | 33 | ||||
-rw-r--r-- | _layouts/default.html | 63 | ||||
-rw-r--r-- | styles.css | 3 |
3 files changed, 54 insertions, 45 deletions
diff --git a/_config.yml b/_config.yml index 49a94de..6050d93 100644 --- a/_config.yml +++ b/_config.yml @@ -55,18 +55,17 @@ t: pt: "Site do EuAndreh" fr: "Site d'EuAndreh" eo: "Retejo de EuAndreh" - pages: - about: - name: - en: "About" - pt: "Sobre" - fr: "À propos" - eo: "Pri" - url: - en: "about.md" - pt: "sobre.md" - fr: "a-propos.md" - eo: "pri.md" + about: + name: + en: "About" + pt: "Sobre" + fr: "À propos" + eo: "Pri" + url: + en: "about.md" + pt: "sobre.md" + fr: "a-propos.md" + eo: "pri.md" articles: url: en: "en/index.md" @@ -90,6 +89,16 @@ t: fr: "/feed.articles.fr.atom" eo: "/feed.articles.eo.atom" pastebins: + name: + en: "Pastebins" + pt: "Pastebins" + fr: "Pastebins" + eo: "Pastebins" + url: + en: "pastebins.en.md" + pt: "pastebins.pt.md" + fr: "pastebins.fr.md" + eo: "pastebins.eo.md" listing: en: "Pastebins listing" pt: "Lista de pastebins" 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> @@ -23,10 +23,11 @@ header { padding: 12px 0px 12px 0px; } -nav { +nav .nav-row { display: flex; flex-direction: row; justify-content: space-between; + flex-wrap: wrap; } nav a { |