feat: rust Dissent in the hero, shrike mark in the header and link preview metadata

- the last line of the home motto is set in the accent colour, as in the logo
- the header of every page starts with the small shrike mark
- og:* and twitter:card meta tags with a 1200x630 preview image (og.png)
This commit is contained in:
squid 2026-11-14 11:08:38 +01:00
commit 944c498d78
8 changed files with 27 additions and 4 deletions

View file

@ -12,7 +12,7 @@ Sources of the kmalloc.org website: plain static HTML, no JavaScript, valid HTML
- `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/`.
- `logo/` holds the shrike logo: SVG and PNG exports (`og-1200x630.png` is the preview image of shared links), `build_logo.py`, the original PNG and the favicons in `logo/web/`.
## Languages

View file

@ -51,6 +51,7 @@ ASSETS = {
"icon-512.png": "logo/png/icon-light-512.png",
"favicon.ico": "logo/web/favicon.ico",
"apple-touch-icon.png": "logo/web/apple-touch-icon.png",
"og.png": "logo/png/og-1200x630.png",
"badges/w3c-html5.png": "badges/w3c-html5.png",
"badges/w3c-css.png": "badges/w3c-css.png",
"squid.asc": "static/squid.asc",

BIN
logo/png/og-1200x630.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View file

@ -96,6 +96,17 @@ code {
}
}
.accent {
color: var(--accent);
}
.mark {
width: 1.25em;
height: 1.25em;
margin-right: .35em;
vertical-align: -.3em;
}
.logo {
display: block;
width: 7em;
@ -117,6 +128,7 @@ code {
--text: #000;
--muted: #000;
--link: #000;
--accent: #000;
}
header, .badges {

View file

@ -5,6 +5,16 @@
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="color-scheme" content="light dark">
{{robots_meta}}<meta name="description" content="{{description_attr}}">
<meta property="og:site_name" content="kmalloc.org">
<meta property="og:type" content="website">
<meta property="og:title" content="{{title_html}}">
<meta property="og:description" content="{{description_attr}}">
<meta property="og:url" content="{{doc_url}}">
<meta property="og:image" content="{{base_url}}/og.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="kmalloc.org: Technology. Freedom. Dissent.">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">

View file

@ -1,7 +1,7 @@
<header>
<nav aria-label="{{sections}}">
<p>
<a href="{{home_link}}" hreflang="en" lang="en">kmalloc.org</a>
<a href="{{home_link}}" hreflang="en" lang="en"><img class="mark" src="/logo-auto.svg" alt="" width="20" height="20">kmalloc.org</a>
&middot;
<a href="{{url_manifesto}}"{{cur_manifesto}}>{{nav_manifesto}}</a>
&middot;

View file

@ -1,7 +1,7 @@
<header>
<nav aria-label="{{sections}}">
<p>
<a href="{{home_link}}"{{cur_home}}>kmalloc.org</a>
<a href="{{home_link}}"{{cur_home}}><img class="mark" src="/logo-auto.svg" alt="" width="20" height="20">kmalloc.org</a>
&middot;
<a href="{{url_manifesto}}"{{cur_manifesto}}>{{nav_manifesto}}</a>
&middot;

View file

@ -2,7 +2,7 @@
<img class="logo" src="/logo-auto.svg" alt="kmalloc" width="112">
</p>
<h1 class="hero">Technology.<br>Freedom.<br>Dissent.</h1>
<h1 class="hero">Technology.<br>Freedom.<br><span class="accent">Dissent.</span></h1>
<p>
<strong>{{identity}}</strong>