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:
parent
173907883a
commit
944c498d78
8 changed files with 27 additions and 4 deletions
|
|
@ -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.
|
- `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.
|
- `news/` holds the news posts, written in English only.
|
||||||
- `badges/` holds the official W3C badges, served from our own site.
|
- `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
|
## Languages
|
||||||
|
|
||||||
|
|
|
||||||
1
build.py
1
build.py
|
|
@ -51,6 +51,7 @@ ASSETS = {
|
||||||
"icon-512.png": "logo/png/icon-light-512.png",
|
"icon-512.png": "logo/png/icon-light-512.png",
|
||||||
"favicon.ico": "logo/web/favicon.ico",
|
"favicon.ico": "logo/web/favicon.ico",
|
||||||
"apple-touch-icon.png": "logo/web/apple-touch-icon.png",
|
"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-html5.png": "badges/w3c-html5.png",
|
||||||
"badges/w3c-css.png": "badges/w3c-css.png",
|
"badges/w3c-css.png": "badges/w3c-css.png",
|
||||||
"squid.asc": "static/squid.asc",
|
"squid.asc": "static/squid.asc",
|
||||||
|
|
|
||||||
BIN
logo/png/og-1200x630.png
Normal file
BIN
logo/png/og-1200x630.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
|
|
@ -96,6 +96,17 @@ code {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.accent {
|
||||||
|
color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.mark {
|
||||||
|
width: 1.25em;
|
||||||
|
height: 1.25em;
|
||||||
|
margin-right: .35em;
|
||||||
|
vertical-align: -.3em;
|
||||||
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
display: block;
|
display: block;
|
||||||
width: 7em;
|
width: 7em;
|
||||||
|
|
@ -117,6 +128,7 @@ code {
|
||||||
--text: #000;
|
--text: #000;
|
||||||
--muted: #000;
|
--muted: #000;
|
||||||
--link: #000;
|
--link: #000;
|
||||||
|
--accent: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
header, .badges {
|
header, .badges {
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,16 @@
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<meta name="color-scheme" content="light dark">
|
<meta name="color-scheme" content="light dark">
|
||||||
{{robots_meta}}<meta name="description" content="{{description_attr}}">
|
{{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.svg" type="image/svg+xml">
|
||||||
<link rel="icon" href="/favicon.ico" sizes="any">
|
<link rel="icon" href="/favicon.ico" sizes="any">
|
||||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<header>
|
<header>
|
||||||
<nav aria-label="{{sections}}">
|
<nav aria-label="{{sections}}">
|
||||||
<p>
|
<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>
|
||||||
·
|
·
|
||||||
<a href="{{url_manifesto}}"{{cur_manifesto}}>{{nav_manifesto}}</a>
|
<a href="{{url_manifesto}}"{{cur_manifesto}}>{{nav_manifesto}}</a>
|
||||||
·
|
·
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<header>
|
<header>
|
||||||
<nav aria-label="{{sections}}">
|
<nav aria-label="{{sections}}">
|
||||||
<p>
|
<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>
|
||||||
·
|
·
|
||||||
<a href="{{url_manifesto}}"{{cur_manifesto}}>{{nav_manifesto}}</a>
|
<a href="{{url_manifesto}}"{{cur_manifesto}}>{{nav_manifesto}}</a>
|
||||||
·
|
·
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<img class="logo" src="/logo-auto.svg" alt="kmalloc" width="112">
|
<img class="logo" src="/logo-auto.svg" alt="kmalloc" width="112">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h1 class="hero">Technology.<br>Freedom.<br>Dissent.</h1>
|
<h1 class="hero">Technology.<br>Freedom.<br><span class="accent">Dissent.</span></h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<strong>{{identity}}</strong>
|
<strong>{{identity}}</strong>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue