Files
Yorgos Saslis 5202711c27 blog: Fix duplicates in author link href
The previous template chained the node directly into the filter
input string, producing hrefs like:

.../nodes/seed.radicle.dev/seed.radicle.dev users/did:key:…

The node appeared twice and a space replaced a slash. The root
cause was commit 6309f51, which refactored a hardcoded URL to use
the `explore` filter but passed the node via `append` instead of
as the filter's positional argument.

The fix assigns the node to a variable first and passes it to
`explore` directly, keeping the filter input to `users/<did>`.
Per-author node override continues to work.

Signed-off-by: Yorgos Saslis <yorgos.work@proton.me>
2026-06-02 17:19:14 +02:00

33 lines
1.5 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% 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/common.css' | relative_url }}"/>
<link rel="stylesheet" type="text/css" href="{{ '/assets/css/fonts.css' | relative_url }}"/>
<link rel="stylesheet" type="text/css" href="{{ '/assets/css/monokai.css' | relative_url }}"/>
<link rel="stylesheet" type="text/css" href="{{ '/assets/css/blog.css' | relative_url }}"/>
</head>
<body>
<main>
<h1>{{ page.title }}</h1>
<p class="subtitle">{{ page.subtitle }}</p>
{% assign node = author.radicle.node | default: site.node %}
<span class="author">
Published by <a href="{{ author.radicle.did | prepend: 'users/' | explore: node }}">{{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>
{% include fixed.html %}
<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>