Skip to content
Snippets Groups Projects
post.html 1.01 KiB
{% extends "page.html" %}

{% block content %}
  {% set post = page -%}
  <div class="columns">
    <div class="column is-three-quarters">
      <div class="content">
        {{ page.content | safe }}
      </div>
    </div>
    <div class="column is-one-quarter">
      <div class="card">
        <div class="card-image">
          <figure class="image is-4by3">
            {% set image = resize_image(path="@/" ~ post.colocated_path ~ "/" ~ post.extra.depiction.image, width=800, height=600) -%}
              <img src="{{ image.url }}" alt="{{ post.extra.depiction.alt }}" />
            {% if post.extra.depiction.credits %}
            <div class="caption">
              <figcaption class="tag has-text-white has-background-black  is-size-7 is-italic m-1">{{ post.extra.depiction.credits }}</figcaption>
            </div>
            {% endif %}
          </figure>
        </div>
        <div class="card-content">
          {% include "blog/meta_media.html" %}
        </div>
      </div>
    </div>
  </div>
{% endblock %}