feat: add the RSS icon to the footer and make the news English only
- show the RSS icon in every footer, linked to /news/feed.xml - write news in English only: the Italian pages list the same posts and link to them - build a single feed instead of one per language - send the language switch of the news pages to the home page of the other language - document the English-only news in the README
This commit is contained in:
parent
7bc7b8789f
commit
8270863f9f
1 changed files with 30 additions and 36 deletions
|
|
@ -10,7 +10,7 @@ Sources of the kmalloc.org website: plain static HTML, no JavaScript, valid HTML
|
|||
- `content/site.toml` holds the values shared by every page: contact address, Bitcoin address, manifesto version.
|
||||
- `content/<lang>/lang.toml` holds the chrome strings of one language (`en`, `it`).
|
||||
- `content/<lang>/*.html` are the pages: a front matter block, then an HTML fragment.
|
||||
- `content/<lang>/news/` holds the news posts.
|
||||
- `content/en/news/` holds the news posts. News are written in English only.
|
||||
- `MANIFESTO.en.md` and `MANIFESTO.it.md` are the manifesto texts, version 1.0.
|
||||
- `fonts/terminess.woff2` is Terminess (Terminus), SIL Open Font License, subset to Latin.
|
||||
- `badges/` holds the official W3C badges, served from our own site.
|
||||
|
|
@ -33,7 +33,7 @@ A page starts with a front matter block, then the HTML fragment:
|
|||
|
||||
## News
|
||||
|
||||
A post is a Markdown file named `YYYY-MM-DD-slug.md` in `content/<lang>/news/`:
|
||||
A post is a Markdown file named `YYYY-MM-DD-slug.md` in `content/en/news/`:
|
||||
|
||||
---
|
||||
title: Hello
|
||||
|
|
@ -43,7 +43,7 @@ A post is a Markdown file named `YYYY-MM-DD-slug.md` in `content/<lang>/news/`:
|
|||
|
||||
## A heading
|
||||
|
||||
The post is published at `/news/slug.html` (`/it/news/slug.html` for Italian). A post with the same file name in both languages is linked as a translation. The news index, the latest three posts on the home page and an RSS 2.0 feed (`/news/feed.xml`, `/it/news/feed.xml`, the latest 20 posts with full text) are built from the files. Every page links its feed in the head. No em dashes: the build refuses them.
|
||||
The post is published at `/news/slug.html`. News are English only: the Italian pages 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.
|
||||
|
||||
## Publishing
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue