mirror of
https://seed.radicle.dev/rad:z371PVmDHdjJucejRoRYJcDEvD5pp.git
synced 2026-10-18 19:10:34 +08:00
Also take a default value from configuration. Fix all usages and change some hardcoded links to use the filter.
39 lines
1.4 KiB
HTML
39 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>
|
|
<button class="toggle" id="toggle-theme"><!-- Set by script --></button>
|
|
</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>
|
|
<p>© The Radicle Team</p>
|
|
</footer>
|
|
<script src="{{ "/assets/js/toggle-theme.js" | relative_url }}"></script>
|
|
</body>
|
|
</html>
|