<meta property="twitter:image" content="{{ static_url("img/ipfire-tux.png") }}" />
{% end block %}
-{% block main %}
- <div class="card">
- <div class="card-body">
- {% module BlogPost(post) %}
+{% block container %}
+ <div class="header">
+ <div class="container">
+ <h1>{{ post.title }}</h1>
+
+ <p class="text-muted">
+ {{ _("by") }}
+
+ {% if isinstance(post.author, accounts.Account) %}
+ <a href="/blog/authors/{{ post.author.uid }}">{{ post.author.name }}</a>,
+ {% else %}
+ <strong>{{ post.author }}</strong>,
+ {% end %}
+
+ {% if post.is_published() %}
+ {% if post.updated_at and post.updated_at > post.published_at %}
+ {{ locale.format_date(post.published_at, shorter=True, relative=False) }},
+ {{ _("Updated %s") % locale.format_date(post.updated_at, shorter=True) }}
+ {% else %}
+ {{ locale.format_date(post.published_at, shorter=True, relative=False) }}
+ {% end %}
+ {% elif post.published_at %}
+ <span class="text-danger">{{ _("Scheduled to be published %s") % locale.format_date(post.published_at, relative=False) }}</span>
+ {% else %}
+ {{ _("Not published") }}
+ {% end %}
+ </p>
</div>
</div>
+
+ <div class="container">
+ <section class="blog-post {% if "lightningwirelabs.com" in post.tags %}lightning-wire-labs{% end %}">
+ <div class="row">
+ <div class="col-12 col-lg-9">
+ <div class="blog-content">
+ {% raw post.html %}
+ </div>
+
+ <div class="btn-toolbar justify-content-center my-5">
+ {% if "lightningwirelabs.com" in post.tags and post.link %}
+ <a class="btn btn-lwl" href="{{ post.link }}">
+ Go to Lightning Wire Labs <span class="fas fa-external-link-alt ml-2"></span>
+ </a>
+ {% end %}
+
+ {% if post.release %}
+ <a class="btn btn-primary" href="/download/{{ post.release.slug }}">
+ {{ _("Download") }}
+ </a>
+ {% end %}
+
+ {% if post.release or "donate" in post.tags %}
+ <a class="btn btn-outline-primary ml-2" href="/donate">
+ {{ _("Donate") }}
+ </a>
+ {% end %}
+ </div>
+ </div>
+ </div>
+ </section>
+ </div>
{% end block %}