1 {% import ipfire.accounts as accounts %}
3 <div class=
"blog-post {% if "lightningwirelabs.com
" in post.tags %}lightning-wire-labs{% end %}">
4 <div class=
"blog-header">
6 <a href=
"https://blog.ipfire.org/post/{{ post.slug }}">
11 <p class=
"small text-muted">
14 {% if isinstance(post.author, accounts.Account) %}
15 <a href=
"/authors/{{ post.author.uid }}">{{ post.author.name }}
</a>
17 <strong>{{ post.author }}
</strong>
20 {{ locale.format_date(post.published_at, shorter=True, relative=False) }}
22 {% if current_user and current_user == post.author %}
23 <a href=
"/post/{{ post.slug }}/edit">{{ _(
"Edit") }}
</a>
28 <div class=
"blog-content">
32 <div class=
"btn-toolbar justify-content-center">
33 {% if
"lightningwirelabs.com" in post.tags and post.link %}
34 <a class=
"btn btn-lwl" href=
"{{ post.link }}">
35 Go to Lightning Wire Labs
<!-- XXX icon -->
40 <a class=
"btn btn-primary" href=
"https://www.ipfire.org/download/{{ post.release.slug }}">
41 {{ _(
"Download %s now") % post.release }}
<!-- XXX icon -->
45 {% if post.release or
"donate" in post.tags %}
46 <a class=
"btn btn-outline-primary ml-2" href=
"https://www.ipfire.org/donate">
47 <svg class=
"icon i_heart"><use xlink:
href=
"#heart"/></svg> {{ _(
"Donate") }}