From 6a426fbcba0be299cc2da5142de5383376b855db Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 28 Apr 2026 12:35:07 +0200 Subject: Updated the Repository page content. Added a cover image for the Sl-Hack-Ware project on github. [EN,IT] --- i18n/en.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'i18n/en.yaml') diff --git a/i18n/en.yaml b/i18n/en.yaml index fe50254..0be4b62 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -166,9 +166,9 @@ easterEggTitle: # other: "GitHub SlackBuild Repositories" # visitGithub: # other: "Visit GitHub" -# repo_example_1_desc: -# other: "SlackBuild scripts for Example Package 1. Build system and tools for Slackware package management." -# repo_example_2_desc: -# other: "SlackBuild scripts for Example Package 2. A comprehensive package with full documentation and support." +repo_example_1_desc: + other: "A curated collection of programs, tools, libraries and various utilities, ready to be compiled and installed on Slackware." +repo_example_2_desc: + other: "Various SlackBuild scripts, following SlackBuilds.org conventions wherever is possible." # repo_example_3_desc: # other: "SlackBuild scripts for Example Package 3. Utility package for system administration and configuration." -- cgit v1.2.3 From 1bb0c3a348a2db79572461e0fd9415a2cf64b3c4 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 28 Apr 2026 13:53:52 +0200 Subject: feat: enable repository page with single repo display --- content/en/repository/index.md | 1 - content/it/repository/index.md | 1 - data/repos.yaml | 26 ++++++++++++------------ hugo.toml | 20 +++++++++--------- i18n/en.yaml | 46 +++++++++++++++++++++--------------------- i18n/it.yaml | 46 +++++++++++++++++++++--------------------- 6 files changed, 69 insertions(+), 71 deletions(-) (limited to 'i18n/en.yaml') diff --git a/content/en/repository/index.md b/content/en/repository/index.md index 56140d6..96a41ed 100644 --- a/content/en/repository/index.md +++ b/content/en/repository/index.md @@ -1,7 +1,6 @@ +++ title = "Slackware Repository" date = 2026-04-17T00:00:00Z -draft = true +++ This is a **Slackware64-current** repository, my packages are built on and managed for slackware64-current. When I release a package that can build on the latest stable version of Slackware, I'll try to publish it to [slackbuilds.org](https://slackbuilds.org/), but if the package comes from this repository, you can assume it's for `-current` only. diff --git a/content/it/repository/index.md b/content/it/repository/index.md index c49ed30..7026640 100644 --- a/content/it/repository/index.md +++ b/content/it/repository/index.md @@ -1,7 +1,6 @@ +++ title = "Repository Slackware" date = 2026-04-17T00:00:00Z -draft = true +++ Questo è un repository **Slackware64-current**; i miei pacchetti sono compilati e gestiti per slackware64-current. Quando rilascio un pacchetto che può essere compilato sull'ultima versione stable di Slackware, provo a pubblicarlo su [slackbuilds.org](https://slackbuilds.org/), ma se il pacchetto proviene da questo repository, date per certo che sia solo per `-current`. diff --git a/data/repos.yaml b/data/repos.yaml index bf9af4e..3f7c897 100644 --- a/data/repos.yaml +++ b/data/repos.yaml @@ -7,17 +7,17 @@ repos: - "Slackware" - "Pentesting" - - name: "My SlackBuilds" - description_key: "repo_example_2_desc" - github_url: "https://github.com/danixland/my-slackbuilds" - image: "" - tags: - - "Packages" + # - name: "My SlackBuilds" + # description_key: "repo_example_2_desc" + # github_url: "https://github.com/danixland/my-slackbuilds" + # image: "" + # tags: + # - "Packages" - - name: "slackbuild-example-3" - description_key: "repo_example_3_desc" - github_url: "https://github.com/danix/slackbuild-example-3" - image: "images/repo-icons/example-3.png" - tags: - - "Slackware" - - "Utilities" + # - name: "slackbuild-example-3" + # description_key: "repo_example_3_desc" + # github_url: "https://github.com/danix/slackbuild-example-3" + # image: "images/repo-icons/example-3.png" + # tags: + # - "Slackware" + # - "Utilities" diff --git a/hugo.toml b/hugo.toml index 885cbd2..505befb 100644 --- a/hugo.toml +++ b/hugo.toml @@ -69,11 +69,11 @@ enableRobotsTXT = true name = "here" weight = 3 - # [[languages.it.menus.main]] - # identifier = "repository" - # pageRef = "/repository" - # name = "repo" - # weight = 4 + [[languages.it.menus.main]] + identifier = "repository" + pageRef = "/repository" + name = "repo" + weight = 4 [[languages.it.menus.main]] identifier = "legal" @@ -108,11 +108,11 @@ enableRobotsTXT = true name = "here" weight = 3 - # [[languages.en.menus.main]] - # identifier = "repository" - # pageRef = "/repository" - # name = "repo" - # weight = 4 + [[languages.en.menus.main]] + identifier = "repository" + pageRef = "/repository" + name = "repo" + weight = 4 [[languages.en.menus.main]] identifier = "legal" diff --git a/i18n/en.yaml b/i18n/en.yaml index 0be4b62..f464748 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -145,30 +145,30 @@ redPill: easterEggTitle: other: "Choose Your Path" -# # Repository Page -# repositoryTitle: -# other: "Slackware Repository" -# repositorySubtitle: -# other: "Download and install my curated Slackware packages" -# quickStartTitle: -# other: "Quick Start" -# copyCommand: -# other: "Copy" -# copiedMessage: -# other: "Copied to clipboard!" -# installationTitle: -# other: "Installation" -# usageTitle: -# other: "Usage" -# availablePackagesTitle: -# other: "Available Packages" -# githubReposTitle: -# other: "GitHub SlackBuild Repositories" -# visitGithub: -# other: "Visit GitHub" +# Repository Page +repositoryTitle: + other: "Slackware Repository" +repositorySubtitle: + other: "Download and install my curated Slackware packages" +quickStartTitle: + other: "Quick Start" +copyCommand: + other: "Copy" +copiedMessage: + other: "Copied to clipboard!" +installationTitle: + other: "Installation" +usageTitle: + other: "Usage" +availablePackagesTitle: + other: "Available Packages" +githubReposTitle: + other: "GitHub SlackBuild Repositories" +visitGithub: + other: "Visit GitHub" repo_example_1_desc: other: "A curated collection of programs, tools, libraries and various utilities, ready to be compiled and installed on Slackware." -repo_example_2_desc: - other: "Various SlackBuild scripts, following SlackBuilds.org conventions wherever is possible." +# repo_example_2_desc: +# other: "Various SlackBuild scripts, following SlackBuilds.org conventions wherever is possible." # repo_example_3_desc: # other: "SlackBuild scripts for Example Package 3. Utility package for system administration and configuration." diff --git a/i18n/it.yaml b/i18n/it.yaml index 27c5c84..438eb8a 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -145,32 +145,32 @@ redPill: easterEggTitle: other: "Scegli il Tuo Percorso" -# # Repository Page -# repositoryTitle: -# other: "Repository Slackware" -# repositorySubtitle: -# other: "Scarica e installa i miei pacchetti Slackware curati" -# quickStartTitle: -# other: "Inizio Rapido" -# copyCommand: -# other: "Copia" -# copiedMessage: -# other: "Copiato negli appunti!" -# installationTitle: -# other: "Installazione" -# usageTitle: -# other: "Utilizzo" -# availablePackagesTitle: -# other: "Pacchetti Disponibili" -# githubReposTitle: -# other: "Repository GitHub SlackBuild" -# visitGithub: -# other: "Visita GitHub" +# Repository Page +repositoryTitle: + other: "Repository Slackware" +repositorySubtitle: + other: "Scarica e installa i miei pacchetti Slackware curati" +quickStartTitle: + other: "Inizio Rapido" +copyCommand: + other: "Copia" +copiedMessage: + other: "Copiato negli appunti!" +installationTitle: + other: "Installazione" +usageTitle: + other: "Utilizzo" +availablePackagesTitle: + other: "Pacchetti Disponibili" +githubReposTitle: + other: "Repository GitHub SlackBuild" +visitGithub: + other: "Visita GitHub" # # Repository Descriptions repo_example_1_desc: other: "Una raccolta di programmi, tool, librerie e varie utility selezionate; pronte per essere compilate e installate su Slackware." -repo_example_2_desc: - other: "Vari script SlackBuild, seguo gli standard di SlackBuilds.org ovunque possibile." +# repo_example_2_desc: +# other: "Vari script SlackBuild, seguo gli standard di SlackBuilds.org ovunque possibile." # repo_example_3_desc: # other: "Script SlackBuild per Pacchetto Esempio 3. Pacchetto di utilità per amministrazione di sistema e configurazione." -- cgit v1.2.3 From f250d9fba9e87e656c31ec4a5818746895ae2c09 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 28 Apr 2026 21:09:14 +0200 Subject: feat: add i18n keys for article stats widget, mark TODO items complete --- TODO.md | 12 ++++++++---- i18n/en.yaml | 2 ++ i18n/it.yaml | 2 ++ 3 files changed, 12 insertions(+), 4 deletions(-) (limited to 'i18n/en.yaml') diff --git a/TODO.md b/TODO.md index 89fd74c..7f19220 100644 --- a/TODO.md +++ b/TODO.md @@ -1,12 +1,16 @@ # danix.xyz TODO List +## Urgent +- [✅] missing related articles logic in sidebar for articles +- [✅] article stats in sidebar (Author, number of words, reading time, thumbnail, etc.) + +## no top priority +- [ ] lazy loading in list view should honor the article side (not all from left) - [⏳] Content review (correct post type, fix thumbnails, metadata, etc.) -- [✅] Related Articles widget in sidebar. - [✅] social sharing sidebar widget - [✅] titles redesign (mono font // Title) - [✅] Sidebar widgets redesign (no box, mono font "# Title") - [✅] Footer redesign (3-column, social badges, fortune cookie, tech badges, etc.) -- [✅] related articles debug - [✅] shortcodes cleanup (remove duplicates) - [✅] Search functionality - [✅] Open Graph meta tags for social sharing @@ -21,8 +25,8 @@ - [✅] remove article type labels from static pages - [✅] Create accessibility badges component (WCAG 2.1 AA, Keyboard Accessible, Screen Reader Compatible) - [✅] Add badges to footer with links to A11Y-AUDIT-REPORT.md -- [ ] theme and content should live on two separate git repos -- [ ] Add accessibility section to About page +- [✅] theme and content should live on two separate git repos +- [✅] Add accessibility section to About page ### Optional Enhancements - [ ] Analytics (privacy-respecting) diff --git a/i18n/en.yaml b/i18n/en.yaml index f464748..89b9b22 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -44,6 +44,8 @@ updated: "Updated" readingTime: "reading time" min: "min" author: "Author" +words: "words" +articleStats: "article" category: "Category" categories: "Categories" tag: "Tag" diff --git a/i18n/it.yaml b/i18n/it.yaml index 438eb8a..c1df1ad 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -44,6 +44,8 @@ updated: "Aggiornato" readingTime: "tempo di lettura" min: "min" author: "Autore" +words: "parole" +articleStats: "articolo" category: "Categoria" categories: "Categorie" tag: "Tag" -- cgit v1.2.3 From 1e906eba8e27b4f554606a49fb11001c20abc427 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 29 Apr 2026 12:25:17 +0200 Subject: feat: obsolete article banner — submodule bump + i18n overrides MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- i18n/en.yaml | 7 ++++++- i18n/it.yaml | 7 ++++++- themes/danix-xyz-hacker | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) (limited to 'i18n/en.yaml') diff --git a/i18n/en.yaml b/i18n/en.yaml index 89b9b22..65a5b1a 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -45,7 +45,7 @@ readingTime: "reading time" min: "min" author: "Author" words: "words" -articleStats: "article" +articleStats: "stat" category: "Category" categories: "Categories" tag: "Tag" @@ -59,6 +59,11 @@ postCount: one: "1 post" other: "{{ . }} posts" +# Obsolete articles +obsolete_label: "Obsolete article" +obsolete_warning: "This article is outdated and may no longer be accurate." +obsolete_read_updated: "Read the updated version" + # Article types life: "Life" photo: "Photo" diff --git a/i18n/it.yaml b/i18n/it.yaml index c1df1ad..3e4a7a4 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -45,7 +45,7 @@ readingTime: "tempo di lettura" min: "min" author: "Autore" words: "parole" -articleStats: "articolo" +articleStats: "stat" category: "Categoria" categories: "Categorie" tag: "Tag" @@ -59,6 +59,11 @@ postCount: one: "1 articolo" other: "{{ . }} articoli" +# Obsolete articles +obsolete_label: "Articolo obsoleto" +obsolete_warning: "Questo articolo è obsoleto e potrebbe non essere più accurato." +obsolete_read_updated: "Leggi la versione aggiornata" + # Article types life: "Vita" photo: "Foto" diff --git a/themes/danix-xyz-hacker b/themes/danix-xyz-hacker index d028aec..749cb3b 160000 --- a/themes/danix-xyz-hacker +++ b/themes/danix-xyz-hacker @@ -1 +1 @@ -Subproject commit d028aeced2049b753f126ec70fad7d73449b7516 +Subproject commit 749cb3b4dc0c5ee7b9a2622a6cb1d731ffbc5004 -- cgit v1.2.3 From dc4eba2c6a709995a2f4718f9fb407f3057a13b8 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 29 Apr 2026 13:13:30 +0200 Subject: feat: external links in main menu — A11y new-tab label + workflow docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- WORKFLOW.md | 18 ++++++++++++++++++ i18n/en.yaml | 1 + i18n/it.yaml | 1 + themes/danix-xyz-hacker | 2 +- 4 files changed, 21 insertions(+), 1 deletion(-) (limited to 'i18n/en.yaml') diff --git a/WORKFLOW.md b/WORKFLOW.md index c95141f..13a6da3 100644 --- a/WORKFLOW.md +++ b/WORKFLOW.md @@ -83,6 +83,24 @@ The banner appears automatically below the article header. If `successor` is set Paths are Hugo permalinks — for English articles, use `/articles/slug`, not `/en/articles/slug`. +### Add an external link to the main menu + +Add a menu entry in `hugo.toml` with `params.external = true`: + +```toml +[[menus.main]] + name = "GitHub" + url = "https://github.com/youruser" + weight = 10 + [menus.main.params] + external = true +``` + +- `name` is used as-is (not looked up in i18n) +- `url` must be a full URL including scheme +- `weight` controls order relative to other menu items +- External links open in a new tab with `rel="noopener noreferrer"` and include a screen-reader-only "(opens in new tab)" label for WCAG 2.1 AA compliance + --- ## Working on the Theme diff --git a/i18n/en.yaml b/i18n/en.yaml index 65a5b1a..bf35bb4 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -10,6 +10,7 @@ toggleTheme: "Theme" toggleMenu: "Menu" closeMenu: "Close" mainMenu: "Main navigation" +opensInNewTab: "(opens in new tab)" skipToContent: "Skip to main content" email: "Email" contact: "Contact" diff --git a/i18n/it.yaml b/i18n/it.yaml index 3e4a7a4..31424ea 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -10,6 +10,7 @@ toggleTheme: "Tema" toggleMenu: "Menu" closeMenu: "Chiudi" mainMenu: "Navigazione principale" +opensInNewTab: "(si apre in una nuova scheda)" skipToContent: "Salta al contenuto principale" email: "Email" contact: "Contatti" diff --git a/themes/danix-xyz-hacker b/themes/danix-xyz-hacker index 1815a96..997ea90 160000 --- a/themes/danix-xyz-hacker +++ b/themes/danix-xyz-hacker @@ -1 +1 @@ -Subproject commit 1815a9655e832a689891ee0843c8f5633a1bb4f5 +Subproject commit 997ea90b7f85329476771e8b30a38fb86c18a07f -- cgit v1.2.3