This repo houses the assets used to build the website for FodyDev at https://fodydev.org.
FodyDev operates through different working groups and initiatives, each of them with their unique contribution guidelines and communication channels.
We encourage people to join the community and get started with contributions to the different FodyDev initiatives.
This site is built using the Hugo static site generator. The site uses the Dot-Org Theme for Hugo as a base and then has its own customisations.
In order to build or locally develop the website, you only need node.js v22 or newer (and git). Everything else comes from npm and is pinned in package.json:
- Hugo v0.170.1 (npm package
hugo-extended; since Hugo v0.170 there is no separate "extended" edition) - Dart Sass (
sass-embedded), PostCSS/Autoprefixer, Pagefind (search) andserve(static server fornpm start)
Then follow these instructions:
-
Clone this repo to a local directory on your computer.
-
Navigate to the newly created directory, and pull in the theme:
git submodule update --init --recursive- Install dependencies:
npm install- Start the local server with live reload (drafts and future posts included):
npm run devThe project uses the standard npm script names, so hosts with auto-deploy (Railpack, Railway, Nixpacks, …) work without extra configuration: npm install → npm run build → npm start.
| Command | What it does |
|---|---|
npm run dev |
Local dev server with live reload on http://localhost:1313 (no search index) |
npm run dev:search |
Builds the Pagefind search index first, then starts the dev server (search works locally) |
npm run build |
Production build (minified) into public/ + Pagefind search index |
npm run build:dev |
Development build (drafts and future posts included) into public/ + search index |
npm start |
Serves the built public/ folder on 0.0.0.0:$PORT (default 3000) |
The production build uses baseURL: https://fodydev.org (config/production/hugo.yaml). To deploy on another domain, set the HUGO_BASEURL environment variable at build time.
On npm ≥ 11 with install scripts restricted, the
hugo-extendedpostinstall may be skipped: Hugo is then downloaded automatically on its first run.
No configuration is needed: Railpack detects Node.js (version from engines.node), runs npm ci, npm run build, then npm start, which listens on the PORT it provides.
As mentioned above, fork and clone this repository, run git submodule update --init --recursive, then run following:
./run-hugo-in-docker.shIt runs npm install, npm run build:dev and npm run dev in a node:22 container (its node_modules is kept separate from yours). Then open http://localhost:1313 in your browser.
If modifying the theme files, you should never edit the theme that is imported via Git Submodule, as otherwise the changes will be overwritten or lost the next time the theme is updated. Changes should be made in override files inside the root directory as this will override the theme directory. Read docs.
The project follows the Hugo v0.146+ template layout: partials live in layouts/_partials/, shortcodes in layouts/_shortcodes/, the home page template is layouts/home.html and single pages use page.html. A few theme templates are overridden in layouts/ only to replace APIs deprecated in recent Hugo releases (.Site.Languages, .Site.Data, .Site.LanguageCode, .Language.LanguageName); they can be removed once the upstream theme is updated.
From the site root:
git submodule update --init --recursive