feat: add data, funds, rules of use and history pages

Add the manifesto changelog, a data and retention table, a costs section, rules of use with sanctions and inactive accounts, a note on automatic translations, the CC BY-SA 4.0 licence, and index only the home page and the manifesto.
This commit is contained in:
squid 2026-11-13 12:40:07 +01:00
commit f21bd75ad8

View file

@ -9,7 +9,7 @@ Sources of the kmalloc.org website: plain static HTML, no JavaScript, valid HTML
- `lang/<lang>.json` holds every text of one language (`en`, `it`, `es`, `de`, `fr`): the menu, the footer and one entry per page. The texts are plain text and the build escapes them.
- `templates/` holds the chrome (`base.html`, `header.html`, `footer.html`), one body per page type in `templates/pages/` and repeated blocks in `templates/parts/`.
- `static/style.css` is the one stylesheet, inlined into every page.
- `MANIFESTO.<lang>.md` are the manifesto texts, version 1.0. English and Italian are the sources, Spanish, German and French are translations.
- `MANIFESTO.<lang>.md` are the manifesto texts. English and Italian are at version 1.1 (`manifesto_version` and `manifesto_date` in `site.json`); Spanish, German and French are machine translations of version 1.0 (overridden in their `lang/<lang>.json`) and show a note that the English text prevails. Every version is listed on the manifesto history page.
- `news/` holds the news posts, written in English only.
- `badges/` holds the official W3C badges, served from our own site.
- `logo/` holds the shrike logo: SVG and PNG exports, `build_logo.py`, the original PNG and the favicons in `logo/web/`.
@ -28,7 +28,7 @@ A page entry in `lang/<lang>.json` looks like this:
"bios": { "squid": "..." }
}
The page types are `home`, `manifesto`, `people`, `services` and `news`. Placeholders such as `{{intro}}` or `{{url_news}}` in `templates/pages/*.html` are replaced at build time, and an unknown placeholder stops the build.
The page types are `home`, `manifesto`, `people`, `services`, `news` and `history` (the manifesto history). A list of plain strings in a page entry becomes `<li>` items. Placeholders such as `{{intro}}` or `{{url_news}}` in `templates/pages/*.html` are replaced at build time, and an unknown placeholder stops the build.
## News
@ -44,6 +44,14 @@ A post is a Markdown file named `YYYY-MM-DD-slug.md` in `news/`:
The post is published at `/news/slug.html`. News are English only: the pages of the other languages list the same posts and link to them. The news index, the latest three posts on the home pages and an RSS 2.0 feed (`/news/feed.xml`, the latest 20 posts with full text) are built from the files. Every page links the feed in the head and shows the RSS icon in the footer. No em dashes: the build refuses them.
## Indexing
Only the home pages and the manifesto pages may be indexed (`INDEXABLE` in `build.py`): they have no robots meta tag and `robots.txt` allows exactly their paths. Every other page has `noindex, nofollow, noarchive` and is blocked in `robots.txt`.
## License
The texts are released under CC BY-SA 4.0, see `LICENSE`. The code and the logo are not covered.
## Publishing
Pushing to `main` publishes the site. A post-receive hook in the Forgejo repository touches a trigger file, `deploy-kmalloc-site.path` on the server notices it and runs `deploy-kmalloc-site`, which builds `main` into a temporary directory and mirrors it into the web root. If the build fails nothing is copied.