mirror of
https://seed.radicle.dev/rad:z371PVmDHdjJucejRoRYJcDEvD5pp.git
synced 2026-11-29 14:10:33 +08:00
This works without JavaScript, and starts out with the user preference (according to the browser) by default. If JavaScript is available, the toggle writes to LocalStorage.
38 lines
1.4 KiB
HTML
38 lines
1.4 KiB
HTML
{% assign author = site.data.author[page.author] %}
|
||
<!DOCTYPE html>
|
||
<html lang="{{ site.lang | default: "en-US" }}">
|
||
<head>
|
||
{% include meta.html %}
|
||
<link rel="stylesheet" type="text/css" href="{{ "/assets/css/blog.css" | relative_url }}"/>
|
||
</head>
|
||
<body>
|
||
<header>
|
||
<div class="title">
|
||
<a href="/">
|
||
<img src="{{ "/assets/images/radicle.svg" | relative_url }}" alt="" />
|
||
<span>Blog</span>
|
||
</a>
|
||
</div>
|
||
<nav>
|
||
</nav>
|
||
</header>
|
||
<main>
|
||
<h1>{{ page.title }}</h1>
|
||
<p class="subtitle">{{ page.subtitle }}</p>
|
||
<span class="author">
|
||
Published by <a href="{{ author.radicle.node | default: site.node | append: ' users/' | append: author.radicle.did | explore }}">{{author.name}}</a>
|
||
{% if author.atproto %}<a href="{{ author.atproto | prepend: "https://bsky.app/profile/" }}">🦋</a>{% endif %}
|
||
{% if author.fedi %}<a href="{{ author.fedi | fedi_to_https }}">🐘</a>{% endif %}
|
||
{% if author.web %}<a href="https://{{ author.web }}">🌐</a>{% endif %}
|
||
on {{ page.date | date: "%d.%m.%Y" }}
|
||
</span>
|
||
{% include toc.html html=content class="toc" item_class="toc-h%level%" %}
|
||
{{ content }}
|
||
</main>
|
||
<footer>
|
||
<span><small>© <span class="desktop">2018–{{ 'now' | date: "%Y" }}</span> The Radicle Team</small></span>
|
||
</footer>
|
||
<script src="{{ "/assets/js/toggle-theme.js" | relative_url }}"></script>
|
||
</body>
|
||
</html>
|