Skip to content

Upgrade to Hextra v0.12#437

Merged
neilenns merged 9 commits intomainfrom
copilot/upgrade-hextra-v012
Mar 16, 2026
Merged

Upgrade to Hextra v0.12#437
neilenns merged 9 commits intomainfrom
copilot/upgrade-hextra-v012

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 16, 2026

Upgrades Hextra from v0.9.3 to v0.12.1, Hugo to v0.157.0, and Go to v1.26.0. The previous attempt failed because overridden partials referenced internal Hextra helpers that no longer exist in the new template system.

Dependency updates

  • Hextra v0.9.3 → v0.12.1
  • Hugo v0.140.2 → v0.157.0 (CI workflow + devcontainer)
  • Go v1.23.4 → v1.26.0 (go.mod); devcontainer image go:1go:dev-1.26

Removed layouts/partials/head.html

Called head-css.html which no longer exists in Hextra v0.12. CSS loading, dark mode initialization, and Google Analytics are now handled natively by Hextra.

Replaced layouts/partials/opengraph.html

The old partial used a custom ogimage front matter key. The new version uses Hextra's standard images array parameter but extends the built-in lookup to also resolve global assets via resources.Get (needed because card images live in /assets/ and are converted to WebP by the card shortcode — the originals aren't published unless explicitly fetched):

{{- with resources.Get . -}}
  <meta property="og:image" content="{{ .Permalink }}">
{{- else -}}
  <meta property="og:image" content="{{ $image | absURL }}">
{{- end -}}

All 95 content files updated from ogimage: pathimages: [path].

Updated layouts/partials/footer.html

  • .Scratch.Get.Store.Get (.Scratch deprecated in Hugo v0.140+)
  • CSS utility prefix hx-hx: (Hextra v0.10+ switched to Tailwind's prefix config)
  • Width variable replaced with hextra-max-footer-width CSS class

Enabled llms.txt generation

outputs:
  home:
    - HTML
    - RSS
    - LLMS

Admin actions still required

  • Update Cloudflare build system to v3
  • Set Cloudflare Hugo build environment variable to v0.157.0

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:

  • cdn.jsdelivr.net
    • Triggering command: /usr/local/bin/hugo hugo --gc (dns block)
  • dl.google.com
    • Triggering command: /usr/bin/go /usr/bin/go mod download grep -l ogimage s/content/game-controllers/winctrl/winctrl-cdu/detailed-aircraft-information/index.md (dns block)
    • Triggering command: /usr/bin/go /usr/bin/go mod download grep -l ogimage s/content/game-controllers/winctrl/premade-profiles/index.md k/_temp/ghcca-node/node/bin/grep (dns block)
    • Triggering command: /usr/bin/go /usr/bin/go mod download grep odes�� ogimage s/content/game-controllers/vkb/_index.md ndor/bin/grep (dns block)
  • gohugo.io
    • 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)
  • imfing.github.io
    • 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)

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

Original prompt

This section details on the original issue you should resolve

<issue_title>Upgrade to Hextra v0.12</issue_title>
<issue_description>We're several versions behind, so upgrade to Hextra v0.12.

Documentation for all revisions since the one we're on:

Additional migrations that will need to be handled by an admin:

  • Update Cloudflare build system version to v3 (currently v2)
  • Update build environment variable in Cloudflare to Hugo v0.157.0</issue_description>

Comments on the Issue (you are @copilot in this section)

@neilenns A quick attempt at this failed with errors in the overridden partial page components.

💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Co-authored-by: neilenns <9524118+neilenns@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Mar 16, 2026

Deploying mobiflight-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 90b567f
Status: ✅  Deploy successful!
Preview URL: https://c2ccf691.mobiflight-docs.pages.dev
Branch Preview URL: https://copilot-upgrade-hextra-v012.mobiflight-docs.pages.dev

View logs

Co-authored-by: neilenns <9524118+neilenns@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade to Hextra v0.12 and modify templates Upgrade to Hextra v0.12 Mar 16, 2026
Copilot AI requested a review from neilenns March 16, 2026 16:36
@neilenns
Copy link
Copy Markdown
Collaborator

@copilot Good start. There are these two warnings to address:

WARN The 'items' parameter of the 'tabs' shortcode is deprecated. Please use 'name' on 'tab' instead.
WARN The 'defaultIndex' parameter of the 'tabs' shortcode is deprecated. Please use 'selected' on 'tab' instead.

Co-authored-by: neilenns <9524118+neilenns@users.noreply.github.com>
Copilot stopped work on behalf of neilenns due to an error March 16, 2026 17:59
Copilot stopped work on behalf of neilenns due to an error March 16, 2026 18:04
@neilenns
Copy link
Copy Markdown
Collaborator

@copilot Tested this deployed to Cloudflare and the og images aren't working. Looking at the page header HTML here's the path generated:

But navigating to that URL results in a 404.

@neilenns neilenns marked this pull request as ready for review March 16, 2026 18:19
Copilot stopped work on behalf of neilenns due to an error March 16, 2026 18:21
@neilenns neilenns merged commit e6377af into main Mar 16, 2026
3 checks passed
@neilenns neilenns deleted the copilot/upgrade-hextra-v012 branch March 16, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade to Hextra v0.12

2 participants