blob: bc2994a53f8275b7479130927d9f37df6d7cf300 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{% extends "base.html" %}
{% block content %}
{% for name in ["posts", "paper-reviews"] %}
{% set section = get_section(path=name ~ "/_index.md") %}
{%- if section.pages | length > 0 %}
<div style="margin-bottom: 3em">
<h1>{{ section.title }}</h1>
<ul style="list-style: none; padding-left: 0">
{% for page in section.pages | slice(end=3) %}
<li style="margin-bottom: 1em">
<a href="{{ page.path }}">{{ page.title }}</a>
<br />
<time datetime="{{ page.date }}">
{{ page.date | date(format="%B %d, %Y") }}
</time>
</li>
{% endfor %}
</ul>
{%- if section.pages | length > 2 %}
<a href="{{ section.path }}">see more ↗</a>
{% endif %}
</div>
{% endif %}
{% endfor %}
{% endblock content %}
|