From 0ed482f4742230ec112bfc5259559c3b14409060 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Feb 2026 06:14:05 +0000 Subject: [PATCH 1/5] Initial plan From 17af3dd2237bcf6ebf9d391c9d7bceeb2823587b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Feb 2026 06:20:24 +0000 Subject: [PATCH 2/5] Optimise theme SEO for i18n: add canonical URL, x-default hreflang, keywords meta, fix meta quoting, add dir attribute Co-authored-by: gurusabarish <53465361+gurusabarish@users.noreply.github.com> --- exampleSite/hugo.yaml | 1 + i18n/en.toml | 4 ++++ i18n/es.toml | 4 ++++ i18n/fr.toml | 4 ++++ layouts/404.html | 2 +- layouts/_default/baseof.html | 2 +- layouts/index.html | 2 +- layouts/partials/head.html | 12 ++++++++++-- 8 files changed, 26 insertions(+), 5 deletions(-) diff --git a/exampleSite/hugo.yaml b/exampleSite/hugo.yaml index 920d058df..6cf660af4 100644 --- a/exampleSite/hugo.yaml +++ b/exampleSite/hugo.yaml @@ -490,6 +490,7 @@ Menus: params: title: "Hugo Profile" description: Text about my cool site + keywords: "portfolio, blog, hugo, theme" # staticPath: "" # The path to serve the static files from favicon: "/fav.png" diff --git a/i18n/en.toml b/i18n/en.toml index e65ac4cde..83ff80a27 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -75,3 +75,7 @@ other = "Page not found" # Date formats [min_read] other = "min read" + +# SEO +[seo_description] +other = "A personal portfolio and blog" diff --git a/i18n/es.toml b/i18n/es.toml index 28d79e560..c772ea448 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -75,3 +75,7 @@ other = "Página no encontrada" # Date formats [min_read] other = "min de lectura" + +# SEO +[seo_description] +other = "Un portafolio personal y blog" diff --git a/i18n/fr.toml b/i18n/fr.toml index 218cb69ad..9e50c6392 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -75,3 +75,7 @@ other = "Page non trouvée" # Date formats [min_read] other = "min de lecture" + +# SEO +[seo_description] +other = "Un portfolio personnel et blog" diff --git a/layouts/404.html b/layouts/404.html index f937797bf..b0b42507e 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,5 +1,5 @@ {{ define "head" }} - + {{ end }} {{ define "title" }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b0fb6aa22..820cf47f5 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - +
{{- partial "head.html" . -}} diff --git a/layouts/index.html b/layouts/index.html index 7e23cc38f..3f3e21a9f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,5 +1,5 @@ {{ define "head" }} - + diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4d136737f..a07324454 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -23,6 +23,14 @@ + + + + +{{ with .Site.Params.keywords }} + +{{ end }} + {{ template "_internal/google_analytics.html" . }} {{ template "_internal/opengraph.html" . }} @@ -33,8 +41,8 @@ {{ range .AllTranslations }} {{ end }} - - + + {{ range .Translations }} {{ end }} From 9840fb573aa8c0059dcabcbffd9d7009180361c4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Feb 2026 06:21:57 +0000 Subject: [PATCH 3/5] Address code review: use explicit default language lookup for x-default hreflang Co-authored-by: gurusabarish <53465361+gurusabarish@users.noreply.github.com> --- layouts/partials/head.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index a07324454..362dbc058 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -41,7 +41,12 @@ {{ range .AllTranslations }} {{ end }} - + {{ $defaultLang := (index .Sites 0).Language.Lang }} + {{ range .AllTranslations }} + {{ if eq .Language.Lang $defaultLang }} + + {{ end }} + {{ end }} {{ range .Translations }} From 85a2c419914b0c20f7f3f7fb881b4615a5429cdf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Feb 2026 06:35:25 +0000 Subject: [PATCH 4/5] Optimise PageSpeed: preload hero image, fetchpriority, lazy loading, async footer CSS Co-authored-by: gurusabarish <53465361+gurusabarish@users.noreply.github.com> --- layouts/_default/list.html | 2 +- layouts/index.html | 4 ++++ layouts/partials/head.html | 3 ++- layouts/partials/sections/about.html | 2 +- layouts/partials/sections/achievements.html | 4 ++-- layouts/partials/sections/footer/recentBlogPosts.html | 2 +- layouts/partials/sections/hero/index.html | 1 + layouts/partials/sections/projects.html | 4 ++-- 8 files changed, 14 insertions(+), 8 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index f41e6126a..e72307fb9 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -17,7 +17,7 @@