Skip to content
Snippets Groups Projects
Unverified Commit afdb3ec9 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Move blog card into includable template

parent 3467bd76
No related branches found
No related tags found
No related merge requests found
<div class="card">
<div class="card-image">
<figure class="image is-4by3">
<a href="{{ post.permalink }}"><img src="{{ get_url(path="@/" ~ post.relative_path, trailing_slash=true) }}{{ post.extra.depiction.image | safe }}" alt="{{ post.extra.depiction.alt }}" /></a>
</figure>
</div>
<div class="card-content">
<a href="{{ post.permalink }}"><h3 class="title is-3">{{ post.title }}</h3></a>
<p class="subtitle">
{{ post.date }} ·
{% for author in post.authors %}
{{ author }}
{% endfor %}
</p>
<div class="content">
{{ post.summary | safe }}
</div>
</div>
</div>
......@@ -5,25 +5,7 @@
<div class="columns is-multiline is-same-height">
{% for post in blog_section.pages | slice(end=4) %}
<div class="column is-one-quarter">
<div class="card">
<div class="card-image">
<figure class="image is-4by3">
<a href="{{ post.permalink }}"><img src="{{ get_url(path="@/" ~ post.relative_path, trailing_slash=true) }}{{ post.extra.depiction.image | safe }}" alt="{{ post.extra.depiction.alt }}" /></a>
</figure>
</div>
<div class="card-content">
<a href="{{ post.permalink }}"><h3 class="title is-3">{{ post.title }}</h3></a>
<p class="subtitle">
{{ post.date }} ·
{% for author in post.authors %}
{{ author }}
{% endfor %}
</p>
<div class="content">
{{ post.summary | safe }}
</div>
</div>
</div>
{% include "blog/card.html" %}
</div>
{% endfor %}
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment