Add feature to use Real name on journals

This commit is contained in:
2026-09-01 18:29:18 +03:00
parent 65bebd19c5
commit 8ad292c793
11 changed files with 89 additions and 13 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
<div class="post-meta"><span>{{ post.category }}</span><time datetime="{{ post.created_at }}">{{ post.created_at[:10] }}</time></div>
<h2><a href="{{ url_for('post', slug=post.slug) }}">{{ post.title }}</a></h2>
<p>{{ post.excerpt }}</p>
<div class="post-foot"><span>BY {{ post.username }}</span><a href="{{ url_for('post', slug=post.slug) }}" aria-label="Read {{ post.title }}">→</a></div>
<div class="post-foot"><span>BY {{ post.real_name or post.username }}</span><a href="{{ url_for('post', slug=post.slug) }}" aria-label="Read {{ post.title }}">→</a></div>
</article>
{% endfor %}
</div>