{# Highlight the latest post #}
{% set highlighted = (post == latest) %}
- <article class="media">
- <div class="media-content">
- {% if highlighted %}
- <p class="heading has-text-primary">
- {{ _("Latest Post") }}
- </p>
- {% else %}
- {% module BlogTag(post) %}
- {% end %}
-
- <div class="columns">
- <div class="column">
- <p class="title {% if highlighted %}is-3{% else %}is-4{% end %}">
- <a {% if "lightningwirelabs.com" in post.tags %}class="has-text-lwl"{% end %} href="/blog/{{ post.slug }}">
- {{ post.title }}
- </a>
+ <div class="block">
+ <div class="card">
+ <div class="card-content">
+ {% if highlighted %}
+ <p class="heading has-text-primary">
+ {{ _("Latest Post") }}
</p>
- </div>
+ {% else %}
+ {% module BlogTag(post) %}
+ {% end %}
- {% if not highlighted and post.published_at %}
- <div class="column is-narrow has-text-grey">
- <small>
- {{ locale.format_date(post.published_at, shorter=True, relative=False) }}
- </small>
+ <div class="columns">
+ <div class="column">
+ <p class="title {% if highlighted %}is-3{% else %}is-4{% end %}">
+ <a {% if "lightningwirelabs.com" in post.tags %}class="has-text-lwl"{% end %} href="/blog/{{ post.slug }}">
+ {{ post.title }}
+ </a>
+ </p>
</div>
- {% end %}
- </div>
- <div class="content">
- {% module Markdown(post.excerpt) %}
- </div>
+ {% if not highlighted and post.published_at %}
+ <div class="column is-narrow has-text-grey">
+ <small>
+ {{ locale.format_date(post.published_at, shorter=True, relative=False) }}
+ </small>
+ </div>
+ {% end %}
+ </div>
+
+ <div class="content">
+ {% module Markdown(post.excerpt) %}
+ </div>
- <div class="level is-mobile">
- <div class="level-left">
- <div class="level-item">
- <small>
- {% if "lightningwirelabs.com" in post.tags %}
- <span class="has-text-lwl">
- {{ _("by Lightning Wire Labs") }}
- </span>
- {% elif show_author and post.author %}
- <span class="icon-text">
- <span class="icon">
- {% module Avatar(post.author, size=24) %}
+ <div class="level is-mobile">
+ <div class="level-left">
+ <div class="level-item">
+ <small>
+ {% if "lightningwirelabs.com" in post.tags %}
+ <span class="has-text-lwl">
+ {{ _("by Lightning Wire Labs") }}
</span>
+ {% elif show_author and post.author %}
+ <span class="icon-text">
+ <span class="icon">
+ {% module Avatar(post.author, size=24) %}
+ </span>
- <a href="/users/{{ post.author.uid }}">
- {{ post.author }}
- </a>
- </span>
+ <a href="/users/{{ post.author.uid }}">
+ {{ post.author }}
+ </a>
+ </span>
+ {% end %}
+ </small>
+ </div>
+
+ {% if highlighted %}
+ {% if post.published_at %}
+ <div class="level-item">
+ <small>
+ {{ locale.format_date(post.published_at, shorter=True, relative=True) }}
+ </small>
+ </div>
{% end %}
- </small>
- </div>
- {% if highlighted %}
- {% if post.published_at %}
<div class="level-item">
- <small>
- {{ locale.format_date(post.published_at, shorter=True, relative=True) }}
- </small>
+ {% module BlogTag(post) %}
</div>
{% end %}
-
- <div class="level-item">
- {% module BlogTag(post) %}
- </div>
- {% end %}
+ </div>
</div>
</div>
</div>
- </article>
+ </div>
{% end %}