Skip to content

Optimize theme SEO and PageSpeed for i18n multilingual sites - #253

Draft
gurusabarish with Copilot wants to merge 5 commits into
masterfrom
copilot/optimize-theme-seo-i18n
Draft

Optimize theme SEO and PageSpeed for i18n multilingual sites#253
gurusabarish with Copilot wants to merge 5 commits into
masterfrom
copilot/optimize-theme-seo-i18n

Conversation

Copilot AI commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

PageSpeed scores regressed after i18n SEO additions. The SEO tags themselves (canonical, hreflang, keywords meta) are lightweight and not the cause — the theme had pre-existing performance gaps that became visible. This PR adds the i18n SEO markup and addresses core web vitals.

SEO / i18n

  • Add <link rel="canonical"> per page to prevent duplicate content penalties across language variants
  • Add hreflang="x-default" pointing to default language (resolved via .Sites weight ordering, not index assumption)
  • Add <meta name="keywords"> support via params.keywords
  • Add dir attribute on <html> for RTL language support
  • Fix unquoted content attr in meta description on index.html and 404.html
  • Remove duplicate og:locale already emitted by Hugo's _internal/opengraph.html
  • Add seo_description i18n key to en/es/fr translation files

PageSpeed

  • LCP: Preload hero image via <link rel="preload" as="image"> in head block; add fetchpriority="high" on hero <img>
  • Render-blocking CSS: Load footer.css async with media="print" onload pattern (below-fold only)
  • Image loading: Add loading="lazy" to all below-fold images (projects, achievements, about, blog list, recent posts)
  • Accessibility: Add missing alt attributes on achievement card images

Example output (English page)

<html lang="en">
  <link rel="canonical" href="https://example.com/">
  <link rel="preload" as="image" href="/images/hero.svg">
  <meta name="keywords" content="portfolio, blog, hugo, theme">
  <link rel="alternate" hreflang="en" href="https://example.com/">
  <link rel="alternate" hreflang="x-default" href="https://example.com/">
  <link rel="stylesheet" href="/css/footer.css" media="print" onload="this.media='all'">
  ...
  <img src="/images/hero.svg" fetchpriority="high" ...>
  <img src="/images/project.png" loading="lazy" alt="Project" ...>

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • pagespeed.web.dev
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)
  • publish.twitter.com
    • Triggering command: /home/REDACTED/go/bin/hugo hugo --themesDir ../.. --theme hugo-profile -c=4 -nolocalimports -importcfg /tmp/go-build3273293197/b658/importcfg -pack /home/REDACTED/go/pkg/mod/github.com/mailru/easyjson@v0.7.7/jlexer/bytestostr.go /home/REDACTED/go/pkg/mod/github.com/mailru/easyjson@v0.7.7/jlexer/error.go abis�� g_.a --local (dns block)
    • Triggering command: /home/REDACTED/go/bin/hugo hugo --themesDir ../.. --theme hugo-profile html 143218-7b4eea64cgithub.com/woodsbury/decimal128 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 8, 2026 06:20
…eywords meta, fix meta quoting, add dir attribute

Co-authored-by: gurusabarish <53465361+gurusabarish@users.noreply.github.com>
…lt hreflang

Co-authored-by: gurusabarish <53465361+gurusabarish@users.noreply.github.com>
Copilot AI changed the title [WIP] Optimize theme for SEO friendliness with I18n Optimise theme SEO for i18n multilingual sites Feb 8, 2026
Copilot AI requested a review from gurusabarish February 8, 2026 06:23
Copilot AI and others added 2 commits February 8, 2026 06:35
…async footer CSS

Co-authored-by: gurusabarish <53465361+gurusabarish@users.noreply.github.com>
Co-authored-by: gurusabarish <53465361+gurusabarish@users.noreply.github.com>
Copilot AI changed the title Optimise theme SEO for i18n multilingual sites Optimize theme SEO and PageSpeed for i18n multilingual sites Feb 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants