From 0dd01ca947c359f179e23845c5c57c757a9f564a Mon Sep 17 00:00:00 2001 From: Cheick Oumar D Date: Wed, 20 May 2026 14:20:02 +0200 Subject: [PATCH] Refactor code structure for improved readability and maintainability --- hugo.toml | 3 ++- i18n/en.toml | 3 +++ i18n/fr.toml | 3 +++ layouts/_default/baseof.html | 3 +++ layouts/partials/seo.html | 12 ++++++++++-- layouts/partials/site-header.html | 2 +- static/favicon.ico | Bin 0 -> 32038 bytes static/images/favicon-192.png | Bin 0 -> 34304 bytes static/images/favicon-512.png | Bin 0 -> 155670 bytes static/images/logo-header.png | Bin 0 -> 144552 bytes static/images/og-theafriforge.jpg | Bin 0 -> 140057 bytes 11 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 static/favicon.ico create mode 100644 static/images/favicon-192.png create mode 100644 static/images/favicon-512.png create mode 100644 static/images/logo-header.png create mode 100644 static/images/og-theafriforge.jpg diff --git a/hugo.toml b/hugo.toml index a5cfefc..2cc5b04 100644 --- a/hugo.toml +++ b/hugo.toml @@ -11,7 +11,8 @@ disableAliases = true gitforgeUrl = "https://gitforge.africa" repositoryUrl = "https://github.com/theafriforge" twitterHandle = "@theafriforge" - ogImage = "/images/og-theafriforge.png" + ogImage = "/images/og-theafriforge.jpg" + logoImage = "/images/logo-header.png" # Membership form configuration (fallback values). # Priority used in templates: # 1) HUGO_MEMBERSHIP_FORM_ACTION / HUGO_MEMBERSHIP_FORM_SUCCESS_PATH diff --git a/i18n/en.toml b/i18n/en.toml index d5d84b7..149bce6 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -1,6 +1,9 @@ [siteDescription] other = "African foundation for open-source software and digital sovereignty." +[seoImageAlt] +other = "TheAfriForge logo representing African digital sovereignty" + [gitforgeCta] other = "Access GitForge" diff --git a/i18n/fr.toml b/i18n/fr.toml index ee24b19..72c13ee 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -1,6 +1,9 @@ [siteDescription] other = "Fondation africaine du logiciel libre et de la souveraineté numerique." +[seoImageAlt] +other = "Logo TheAfriForge representant la souverainete numerique africaine" + [gitforgeCta] other = "Acceder a GitForge" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 87d559b..57c4569 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,6 +4,9 @@ {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }} + + + {{ partial "seo.html" . }}