Pages
What this solves
You have a Hugo docs or website repository and want Forgejo-native static hosting.
Hugo deploys cleanly when the workflow pins a Hugo version and publishes the generated public directory.
Pages
You have a Hugo docs or website repository and want Forgejo-native static hosting.
Hugo is fast enough that most teams do not need a complex deployment pipeline. Pin the extended Hugo build when your theme needs Sass processing, run the production build, and publish the `public` directory produced by that exact commit.
name: pages
on: [push]
jobs:
build:
runs-on: docker
steps:
- uses: actions/checkout@v4
with:
submodules: true
- run: hugo --minify
- run: test -f public/index.htmlPin the Hugo version if your theme is sensitive to renderer changes.
Fetch submodules when themes live outside the repository.
Preview taxonomy, sitemap, and canonical URLs before switching DNS.
Publish MkDocs documentation with Forgejo Actions and Fjord Pages: build the site from the repository and ship the exact generated output.
Plan custom domains for Forgejo Pages sites, including DNS records, HTTPS expectations, verification steps and when to keep a default domain.
Automate Forgejo with fj, Actions, and API calls: schedule routine jobs, wire repository hooks, handle secrets, and cut releases without touching the UI.