mirror of
https://github.com/redlib-org/redlib.git
synced 2025-05-25 11:22:26 +00:00
Rich flairs
This commit is contained in:
parent
bbe7024323
commit
a4d77926b6
5 changed files with 23 additions and 13 deletions
|
@ -46,7 +46,9 @@
|
|||
<span class="datetime">{{ post.time }}</span>
|
||||
</p>
|
||||
<p class="post_title">
|
||||
{% call utils::render_flair(post.flair) %}
|
||||
{% if post.flair.flair_parts.len() > 0 %}
|
||||
<small class="post_flair" style="color:{{ post.flair.foreground_color }}; background:{{ post.flair.background_color }}">{% call utils::render_flair(post.flair.flair_parts) %}</small>
|
||||
{% endif %}
|
||||
<a href="{{ post.permalink }}">{{ post.title }}</a>
|
||||
</p>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue