aboutsummaryrefslogtreecommitdiff
path: root/v2/src/lib
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-04-09 18:59:09 -0300
committerEuAndreh <eu@euandre.org>2023-04-09 19:05:39 -0300
commit19a8b995c59cce5315e1d121054f9c27aad5c960 (patch)
treef2c2d83751245004beed21b31d973c1d412cd026 /v2/src/lib
parentv2: CSS dark mode, including SVGs (diff)
downloadeuandre.org-19a8b995c59cce5315e1d121054f9c27aad5c960.tar.gz
euandre.org-19a8b995c59cce5315e1d121054f9c27aad5c960.tar.xz
v2: Support translated alternates in <nav>
Diffstat (limited to 'v2/src/lib')
-rw-r--r--v2/src/lib/base.en.conf6
-rw-r--r--v2/src/lib/base.pt.conf6
-rw-r--r--v2/src/lib/preamble.html19
3 files changed, 28 insertions, 3 deletions
diff --git a/v2/src/lib/base.en.conf b/v2/src/lib/base.en.conf
index bc90b10..4eff237 100644
--- a/v2/src/lib/base.en.conf
+++ b/v2/src/lib/base.en.conf
@@ -23,6 +23,8 @@ export index_recent__title='Recent articles'
export index_category__title='Articles by category'
+export index__url="$(url-for "$lang/$(coll2path "$lang" article)")"
+
export feed__title="EuAndreh's articles"
@@ -32,6 +34,8 @@ export index_recent_pastebin_title='Pastebins listing'
export index_category_pastebin_title='Pastebins by category'
+export index_pastebin_url="$(url-for "$lang/$(coll2path "$lang" pastebin)")"
+
export feed_pastebin_title="EuAndreh's pastebins"
@@ -41,4 +45,6 @@ export index_recent_til_title='TIL listing'
export index_category_til_title='TIL by category'
+export index_til_url="$(url-for "$lang/$(coll2path "$lang" til)")"
+
export feed_til_title="EuAndreh's TIL"
diff --git a/v2/src/lib/base.pt.conf b/v2/src/lib/base.pt.conf
index 5703bed..8c9f7c9 100644
--- a/v2/src/lib/base.pt.conf
+++ b/v2/src/lib/base.pt.conf
@@ -23,6 +23,8 @@ export index_recent__title='Artigos recentes'
export index_category__title='Artigos por categoria'
+export index__url="$(url-for "$lang/$(coll2path "$lang" article)")"
+
export feed__title="Artigos do EuAndreh"
@@ -32,6 +34,8 @@ export index_recent_pastebin_title='Pastebins listing'
export index_category_pastebin_title='Pastebins by category'
+export index_pastebin_url="$(url-for "$lang/$(coll2path "$lang" pastebin)")"
+
export feed_pastebin_title="EuAndreh's pastebins"
@@ -41,4 +45,6 @@ export index_recent_til_title='HEA recentes'
export index_category_til_title='HEA por categoria'
+export index_til_url="$(url-for "$lang/$(coll2path "$lang" til)")"
+
export feed_til_title="HEA do EuAndreh"
diff --git a/v2/src/lib/preamble.html b/v2/src/lib/preamble.html
index fc19961..1649bdd 100644
--- a/v2/src/lib/preamble.html
+++ b/v2/src/lib/preamble.html
@@ -19,10 +19,23 @@
<body>
<header>
<nav>
- <ul>
- <a href="$homepage_url">$author</a>
- <a href="$about_url">$about</a>
+ <ul class="main-navigation-links">
+ <li>
+ <a href="$homepage_url">$author</a>
+ </li>
+ <li>
+ <a href="$about_url">$about</a>
+ </li>
</ul>
+ <ul class="collections-navigation-links">
+ <li>
+ <a href="$index_til_url">$index_til_title</a>
+ </li>
+ <li>
+ <a href="$index_pastebin_url">$index_pastebin_title</a>
+ </li>
+ </ul>
+$translations_html
</nav>
<hr />
</header>