feat(news): news in blog style

Templates and strings for the blog features of the next motorino: a post page with
the long date, author, categories, summary, reading time and links to the older
and newer posts, the blog list with pages and the archive on the news index, Open
Graph article meta, month names and the interface strings in the five languages,
the author and the language of the news in site.json, and the styles.

Needs the motorino release that adds these features (.motorino-version is not
changed here).
This commit is contained in:
squid 2026-11-16 12:12:27 +01:00
commit 85b01cf588
3 changed files with 188 additions and 10 deletions

5
templates/archive.html Normal file
View file

@ -0,0 +1,5 @@
<h1>{{archive_h}}: {{archive_name}}</h1>
{{archive_nav}}
{{archive_posts}}

View file

@ -7,9 +7,10 @@
<meta name="generator" content="motorino {{motorino_version}}">
<meta name="description" content="{{description_attr}}">
<meta property="og:site_name" content="kmalloc.org">
<meta property="og:type" content="website">
<meta property="og:type" content="{{og_type}}">
<meta property="og:title" content="{{title_html}}">
<meta property="og:description" content="{{description_attr}}">
{{article_meta}}
<meta property="og:url" content="{{doc_url}}">
<meta property="og:image" content="{{base_url}}/og.png">
<meta property="og:image:width" content="1200">

View file

@ -1,7 +1,10 @@
<h1>{{post_title}}</h1>
<p>
<time datetime="{{date}}">{{date}}</time>{{post_byline}}
</p>
{{post_summary}}
{{post_meta}}
{{post_body}}
{{post_mastodon}}
{{post_nav}}