]> git.ipfire.org Git - ipfire.org.git/blame - src/templates/blog/modules/list.html
wiki: Only match usernames when a word starts with @
[ipfire.org.git] / src / templates / blog / modules / list.html
CommitLineData
7e64f6a3 1{% for post in posts %}
b229a9d6
MT
2 <p>
3 <h5 class="title is-5">
4 <a {% if "lightningwirelabs.com" in post.tags %}class="has-text-lwl"{% end %} href="/blog/{{ post.slug }}">
5 {{ post.title }}
6 </a>
7 </h5>
2f8c9d04 8
989f3b1d 9 <h6 class="subtitle is-6">
b6106fd7
MT
10 {% if post.published_at %}
11 {{ locale.format_date(post.published_at, shorter=True, relative=relative) }}
12 {% elif post.created_at %}
13 {{ _("Created %s") % locale.format_date(post.created_at, shorter=True, relative=True) }}
14 {% end %}
b229a9d6
MT
15
16 {% if "lightningwirelabs.com" in post.tags %}
17 <span class="has-text-lwl">{{ _("by Lightning Wire Labs") }}</span>
18 {% elif show_author and post.author %}
1f153396 19 <a href="/users/{{ post.author.uid }}">{{ _("by %s") % post.author }}</a>
b229a9d6
MT
20 {% end %}
21 </h6>
7e64f6a3
MT
22 </p>
23{% end %}