From c6ef4ff68cc1c9a835198171680f482446eb45ec Mon Sep 17 00:00:00 2001 From: Adrian Victor Date: Fri, 10 Jul 2026 13:35:10 -0300 Subject: [PATCH] Make home aside webrings list collapsable. --- site/_data/i18n.cjs | 2 ++ site/_includes/header.njk | 23 -------------------- site/index.njk | 44 +++++++++++++++++++++++++++++++++++++-- static/main.css | 11 ++++++++++ static/scripts/home.js | 10 ++++++++- 5 files changed, 64 insertions(+), 26 deletions(-) diff --git a/site/_data/i18n.cjs b/site/_data/i18n.cjs index f7c8f48..c304022 100644 --- a/site/_data/i18n.cjs +++ b/site/_data/i18n.cjs @@ -89,6 +89,7 @@ module.exports = { nextSite: "next site", random: "random", showMore: "Show more", + showLess: "Show less", previous: "previous", next: "next", about: "about", @@ -179,6 +180,7 @@ module.exports = { nextSite: "próximo site", random: "aleatório", showMore: "Ver mais", + showLess: "Ver menos", previous: "anterior", next: "próximo", about: "sobre", diff --git a/site/_includes/header.njk b/site/_includes/header.njk index 69b4cf4..cfb261a 100644 --- a/site/_includes/header.njk +++ b/site/_includes/header.njk @@ -3,29 +3,6 @@

{{ title or "Adrian Victor" }}

{{ subtitle or "Fanasy is not a crime, find your castle in the sky." }}

-
diff --git a/site/index.njk b/site/index.njk index 6be8f5a..b5f41d1 100644 --- a/site/index.njk +++ b/site/index.njk @@ -16,15 +16,53 @@ headerLink: home
+ +
@@ -189,7 +227,7 @@ headerLink: home

{{ i18n[langKey].showMore }}

-
+

Guestbook


@@ -213,7 +251,7 @@ headerLink: home

{{ i18n[langKey].addMe }}?

-
+

Webrings


@@ -265,6 +303,8 @@ headerLink: home {% include 'widgets/droidring.html' %}
+ {{ i18n[langKey].showMore }}... + {% include 'widgets/internetometer-aside.html' %}