feat: move the pages to Markdown and the news to the dated layout
Pages are Markdown files in content/<lang>/ with a Key: value header, the news carry Title, Author, Date, Categories and Description and are published as /news/YYYY/MM/name.html, with a page for every category. The templates, the language files and site.json shrink to the chrome and the shared strings, and the footer credits motorino. The output matches the one of build.py page by page, checked with tools/compare.py and the Nu HTML Checker.
This commit is contained in:
parent
e0607bbda3
commit
d2f9bba46b
15 changed files with 1518 additions and 896 deletions
|
|
@ -4,7 +4,8 @@
|
|||
<meta charset="utf-8">
|
||||
<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 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:title" content="{{title_html}}">
|
||||
|
|
|
|||
3
templates/category.html
Normal file
3
templates/category.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<h1>{{category_h}}: {{category_name}}</h1>
|
||||
|
||||
{{category_posts}}
|
||||
|
|
@ -10,5 +10,8 @@
|
|||
·
|
||||
{{license_text}} <a href="{{license_url}}" rel="license">CC BY-SA 4.0</a>.
|
||||
</p>
|
||||
<p>
|
||||
{{powered_by}} <a href="{{motorino_url}}">motorino</a>.
|
||||
</p>
|
||||
{{badges}}
|
||||
</footer>
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
<h1>{{post_title}}</h1>
|
||||
|
||||
<p>
|
||||
<time datetime="{{date}}">{{date}}</time>
|
||||
</p>
|
||||
|
||||
{{post_body}}
|
||||
1
templates/pages/bare.html
Normal file
1
templates/pages/bare.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
{{body}}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
<h1>{{heading}}</h1>
|
||||
|
||||
<p>
|
||||
{{intro}}
|
||||
<a href="{{url_manifesto}}">{{current_a}}</a>.
|
||||
</p>
|
||||
|
||||
{{history_list}}
|
||||
<h2 id="propose">{{propose_h}}</h2>
|
||||
|
||||
<p>
|
||||
{{propose_p1}}
|
||||
<a href="{{issues_url}}">{{propose_a}}</a>.
|
||||
{{propose_p2}}
|
||||
</p>
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
<p>
|
||||
<img class="logo" src="/logo-auto.svg" alt="kmalloc" width="112">
|
||||
</p>
|
||||
|
||||
<h1 class="hero">Technology.<br>Freedom.<br><span class="accent">Dissent.</span></h1>
|
||||
|
||||
<p>
|
||||
<strong>{{identity}}</strong>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{intro}}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Allocate freedom.</strong>
|
||||
</p>
|
||||
|
||||
<h2 id="manifesto">{{nav_manifesto}}</h2>
|
||||
|
||||
<p>
|
||||
{{manifesto_p}}
|
||||
<a href="{{url_manifesto}}">{{manifesto_a}}</a> ({{version_lc}} {{manifesto_version}}).
|
||||
</p>
|
||||
|
||||
<h2 id="people">{{nav_people}}</h2>
|
||||
|
||||
<p>
|
||||
{{people_p}}
|
||||
<a href="{{url_people}}">{{people_a}}</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="services">{{nav_services}}</h2>
|
||||
|
||||
<p>
|
||||
{{services_p}}
|
||||
<a href="{{url_services}}">{{services_a}}</a>.
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
{{services_list}}
|
||||
</ul>
|
||||
|
||||
{{latest_news}}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<h1>{{manifesto_title}}</h1>
|
||||
<h1>{{page_title}}</h1>
|
||||
|
||||
<p>
|
||||
<strong>{{version}} {{manifesto_version}}, <time datetime="{{manifesto_date}}">{{manifesto_date}}</time></strong>
|
||||
|
|
@ -12,4 +12,4 @@
|
|||
{{manifesto_toc}}
|
||||
</ul>
|
||||
|
||||
{{manifesto_body}}
|
||||
{{body}}
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
<h1>{{nav_news}}</h1>
|
||||
|
||||
<p>
|
||||
{{intro}}
|
||||
</p>
|
||||
|
||||
{{news_list}}
|
||||
|
||||
<p>
|
||||
<a href="{{url_news}}feed.xml">{{rss}}</a>
|
||||
</p>
|
||||
3
templates/pages/page.html
Normal file
3
templates/pages/page.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<h1>{{page_title}}</h1>
|
||||
|
||||
{{body}}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
<h1>{{nav_people}}</h1>
|
||||
|
||||
<p>
|
||||
{{intro}}
|
||||
</p>
|
||||
|
||||
{{people_cards}}
|
||||
|
|
@ -1,198 +0,0 @@
|
|||
<h1>{{nav_services}}</h1>
|
||||
|
||||
<p>
|
||||
{{intro}}
|
||||
</p>
|
||||
|
||||
<p class="note" role="note">
|
||||
<strong>{{shop_h}}.</strong>
|
||||
{{shop_panel_p}}
|
||||
<a href="#shop">{{shop_panel_a}}</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{on_page}}
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><a href="#account">{{account_h}}</a></li>
|
||||
<li><a href="#rules">{{rules_h}}</a></li>
|
||||
<li><a href="#data">{{data_h}}</a></li>
|
||||
<li><a href="#authorities">{{authorities_h}}</a></li>
|
||||
<li><a href="#security">{{security_h}}</a></li>
|
||||
<li><a href="#funding">{{funding_h}}</a></li>
|
||||
</ul>
|
||||
|
||||
<h2 id="account">{{account_h}}</h2>
|
||||
|
||||
<p>
|
||||
{{account_p1}}
|
||||
<a href="{{account_form_url}}">{{account_form}}</a>{{account_alt}}
|
||||
<strong>{{contact_shown}}</strong>
|
||||
({{at_hint}}),
|
||||
{{account_p2}}
|
||||
{{account_gpg}} <a href="#contact">{{contact_h}}</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="contact">{{contact_h}}</h2>
|
||||
|
||||
<p>
|
||||
{{contact_p1}}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{contact_fingerprint}} <code>{{gpg_fingerprint}}</code>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a href="{{gpg_key}}">{{contact_key}}</a>,
|
||||
<a href="{{gpg_keyserver}}">{{contact_keyserver}}</a>.
|
||||
</p>
|
||||
|
||||
{{service_sections}}<h2 id="rules">{{rules_h}}</h2>
|
||||
|
||||
<p>
|
||||
{{rules_p1}}
|
||||
</p>
|
||||
|
||||
<h3 id="conduct">{{rules_conduct_h}}</h3>
|
||||
|
||||
<p>
|
||||
{{rules_conduct_p}}
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
{{rules_conduct}}
|
||||
</ul>
|
||||
|
||||
<h3 id="resources">{{rules_resources_h}}</h3>
|
||||
|
||||
<ul>
|
||||
{{rules_resources}}
|
||||
</ul>
|
||||
|
||||
<h3 id="sanctions">{{rules_sanctions_h}}</h3>
|
||||
|
||||
<p>
|
||||
{{rules_sanctions_p}}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{rules_p2}}
|
||||
<strong>{{abuse_shown}}</strong>.
|
||||
{{rules_p3}}
|
||||
</p>
|
||||
|
||||
<h3 id="inactive">{{rules_inactive_h}}</h3>
|
||||
|
||||
<p>
|
||||
{{rules_inactive_p}}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{rules_p4}}
|
||||
</p>
|
||||
|
||||
<h2 id="privacy">{{privacy_h}}</h2>
|
||||
|
||||
<p>
|
||||
{{privacy_p1}}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{privacy_p2}}
|
||||
</p>
|
||||
|
||||
<h2 id="data">{{data_h}}</h2>
|
||||
|
||||
<p>
|
||||
{{data_p1}}
|
||||
</p>
|
||||
|
||||
<table class="data">
|
||||
<caption>{{data_caption}}</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">{{col_service}}</th>
|
||||
<th scope="col">{{col_admin}}</th>
|
||||
<th scope="col">{{col_not_e2e}}</th>
|
||||
<th scope="col">{{col_kept}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{retention_rows}}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
{{data_p2}}
|
||||
</p>
|
||||
|
||||
<h2 id="authorities">{{authorities_h}}</h2>
|
||||
|
||||
<p>
|
||||
{{authorities_p1}}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{authorities_p2}}
|
||||
</p>
|
||||
|
||||
<h2 id="security">{{security_h}}</h2>
|
||||
|
||||
<p>
|
||||
{{security_p1}}
|
||||
<strong>{{security_shown}}</strong>.
|
||||
{{security_p2}}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{abuse_p1}}
|
||||
<strong>{{abuse_shown}}</strong>.
|
||||
{{abuse_p2}}
|
||||
</p>
|
||||
|
||||
<h2 id="funding">{{funding_h}}</h2>
|
||||
|
||||
<p>
|
||||
{{funding_p1}}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{funding_p2}}
|
||||
<a href="bitcoin:{{btc}}"><code>{{btc}}</code></a>
|
||||
</p>
|
||||
|
||||
<h3 id="shop">{{shop_h}}</h3>
|
||||
|
||||
<p>
|
||||
{{shop_p1}}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{shop_p2}}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a href="{{shop_url}}" rel="noreferrer">{{shop_a}}</a>.
|
||||
</p>
|
||||
|
||||
<h3 id="logos">{{logos_h}}</h3>
|
||||
|
||||
<p>
|
||||
{{logos_p1}}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{logos_p2}}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a href="/riot_pack.zip">{{logos_a}}</a>.
|
||||
</p>
|
||||
|
||||
<h2 id="terms">{{terms_h}}</h2>
|
||||
|
||||
<p>
|
||||
{{terms_p}}
|
||||
</p>
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
<h2 id="{{handle}}">{{title}}</h2>
|
||||
|
||||
<p>
|
||||
{{bio}}
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
{{links}}
|
||||
</ul>
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
<h2 id="{{id}}">{{name}}</h2>
|
||||
|
||||
<p>
|
||||
{{text}}
|
||||
<a href="{{url}}">{{open_a}}</a>.
|
||||
</p>
|
||||
|
||||
7
templates/post.html
Normal file
7
templates/post.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<h1>{{post_title}}</h1>
|
||||
|
||||
<p>
|
||||
<time datetime="{{date}}">{{date}}</time>{{post_byline}}
|
||||
</p>
|
||||
|
||||
{{post_body}}
|
||||
Loading…
Reference in a new issue