Skip to content
Snippets Groups Projects
section.html 993 B
Newer Older
Hugo Trentesaux's avatar
Hugo Trentesaux committed
{% extends "index.html" %}

{% block content %}
  <main class="w3-container w3-margin-mobile">
Hugo Trentesaux's avatar
Hugo Trentesaux committed
    <div class="w3-margin">
      {{ section.content | safe }}
    </div>
Hugo Trentesaux's avatar
Hugo Trentesaux committed
    <hr>
Hugo Trentesaux's avatar
Hugo Trentesaux committed
    {% for article in section.pages | reverse() %}
    <a href="{{ article.permalink }}">
    <div class="w3-margin-mobile w3-row-padding kkk-newslink">
      {% if article.extra.thumbnail %}
      {% set thumbnail = article.extra.thumbnail %}
        <img class="w3-col s5 m2" src="
        {%- if thumbnail is matching("[.](jpg|png|jpeg)$") -%}
        {{ macros::resize_static(path=article.extra.thumbnail) }}
        {%- else -%}
        {{ article.extra.thumbnail }}
        {%- endif -%}
        "/>
      {% endif %}
      <div class="w3-mobile w3-rest">
        <h3>{{ article.title }}</h3>&nbsp;<span class="date">{{ article.date }}</span>
        {% if article.description %}<p>{{ article.description }}</p>{% endif %}
      </div>
Hugo Trentesaux's avatar
Hugo Trentesaux committed
    </div>
Hugo Trentesaux's avatar
Hugo Trentesaux committed
    {% endfor %}

  </main>
{% endblock content %}