Skip to content

chore: migrate to Hugo v0.170.1 and standard npm scripts - #23

Merged
pythonbrad merged 1 commit into
mainfrom
update_hugo
Nov 27, 2026
Merged

pythonbrad merged 1 commit into
mainfrom
update_hugo

Conversation

@pythonbrad

@pythonbrad pythonbrad commented Nov 27, 2026 •

Copy link
Copy Markdown
Member
  • Pin Hugo 0.170.1 via npm (hugo-extended) so local, CI, Docker and Railpack builds use the same version; drop unused netlify-cli
  • Standard npm scripts (dev, build, start) for auto-deploy hosts; npm start serves public/ on $PORT; pin pagefind and serve
  • Follow the Hugo v0.146+ template layout (layouts/_partials, home.html)
  • Fix deprecations: languageName -> label, LibSass -> Dart Sass (css.Sass/css.PostCSS), and override theme templates using .Site.Languages, .Site.Data, .Site.LanguageCode, .LanguageName
  • Fix French site title/copyright being ignored (set under params)
  • Ensure node_modules/.bin/sass points to sass-embedded (npm 10 links the pure-JS fallback, which Hugo cannot use)
  • CI: build with npm ci + npm run build on Node 22
  • Docker: node:22 image, rootless-Docker aware, isolated node_modules
  • Update README

Summary by CodeRabbit

  • New Features
    • Blog posts can display publication dates, author names, company details, and links to author profiles.
    • Pages can include an “Edit this page on GitHub” link when configured.
    • The language selector links to the equivalent page in another language when available, or that language’s home page.
  • Documentation
    • Updated setup and deployment guidance, including the Node.js 22+ prerequisite and development commands.

- Pin Hugo 0.170.1 via npm (hugo-extended) so local, CI, Docker and
  Railpack builds use the same version; drop unused netlify-cli
- Standard npm scripts (dev, build, start) for auto-deploy hosts;
  `npm start` serves public/ on $PORT; pin pagefind and serve
- Follow the Hugo v0.146+ template layout (layouts/_partials, home.html)
- Fix deprecations: languageName -> label, LibSass -> Dart Sass
  (css.Sass/css.PostCSS), and override theme templates using
  .Site.Languages, .Site.Data, .Site.LanguageCode, .LanguageName
- Fix French site title/copyright being ignored (set under params)
- Ensure node_modules/.bin/sass points to sass-embedded (npm 10 links
  the pure-JS fallback, which Hugo cannot use)
- CI: build with npm ci + npm run build on Node 22
- Docker: node:22 image, rootless-Docker aware, isolated node_modules
- Update README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pythonbrad pythonbrad self-assigned this Nov 27, 2026
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

The project now uses Node.js 22 and npm-managed Hugo 0.170.1 for local and CI builds. The changes update build scripts, Docker and workflow setup, Hugo configuration and templates, and add Pagefind build commands.

Changes: Hugo build and site rendering

Layer / File(s) Summary
Node.js and Hugo toolchain
package.json, .tool-versions, config/_default/hugo.yaml, README.md
The package defines Node.js 22 or later, pins Hugo to 0.170.1, and adds build, development, and serving scripts. The Hugo configuration sets a minimum version of 0.170.0. The README documents setup and npm commands.
Hugo configuration and templates
config/_default/languages.yaml, layouts/blog/page.html, layouts/_partials/blog/byline.html, layouts/_partials/language-selector.html, layouts/_partials/footer/github.html, layouts/_partials/head/custom-head.html, scripts/link-dart-sass.js, README.md
The language configuration uses label and moves French title and copyright settings. Templates render blog bylines, language links, and conditional GitHub edit links. Sass compilation uses Dart Sass with production-specific output settings. The script links the Sass executable to sass-embedded on supported systems.
Local and CI build execution
.github/workflows/hugo.yml, run-hugo-in-docker.sh, run-hugo.sh, README.md
The CI workflow sets up Node.js and uses npm to install dependencies and build. The Docker and shell scripts run the development build and server. The README documents the updated local and Docker commands.

Estimated code review effort: 3 (Moderate) | ~25 minutes

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@pythonbrad
pythonbrad merged commit 5e67966 into main Nov 27, 2026
3 of 4 checks passed
@pythonbrad
pythonbrad deleted the update_hugo branch November 27, 2026 11:46
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.

1 participant