~andrewzah/personal-site

personal-site/templates/section.html -rw-r--r-- 629 bytes View raw
dd273feeAndrew Zah begin new watch post 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{% extends "base.html" %}

{% import "macros.html" as macros %}
{% block title %}{{ section.title }} | {{ config.title }}{% endblock title %}

{% block main %}
  <div class="container section">
    {% set section = get_section(path=section.components[0] ~ "/_index.md") %}
    <h2 id="section-title">{{ section.title }}</h2>

    {% block introduction %}{% endblock introduction %}

    <div class="posts neutral">
      {% for page in section.pages %}
        <div class="section-post page">
          {{ macros::post_link(page=page, section=section) }}
        </div>
      {% endfor %}
    </div>
  </div>
{% endblock main %}