about summary refs log tree commit diff
path: root/templates/index.html
blob: 4f848be951f275cac1bd5fe275d1975c763b5348 (plain) (blame)
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
29
30
31
32
33
34
35
36
37
38
{% extends "base.html" %}

{%- block content -%}
<section id="blog" class="times">

{% if section.content %}
<section id="introduction">
  {{ section.content | safe }}
</section>
{% endif %}

<h2>articles</h2>
{%- set blog = get_section(path="blog/_index.md") -%}
{%- set post_count = blog.pages | length -%}
<ul>
{%- for post in blog.pages %}
<li><article>
    <h3><a href="{{- post.path|safe -}}">{{- post.title -}}</a></h3>
    <time datetime="{{ post.date | date(format="%+")}}">{{ post.date | date(format="%B %m, %Y")}}</time>
</article></li>
{%- endfor %}
</ul>

<h2>notes</h2>
{%- set notes = get_section(path="notes/_index.md") -%}
{%- set post_count = notes.pages | length -%}
<ul>
{%- for post in notes.pages %}
<li><article>
    <h3><a href="{{- post.path|safe -}}">{{- post.title -}}</a></h3>
    <time datetime="{{ post.date | date(format="%+")}}">{{ post.date | date(format="%B %m, %Y")}}</time>
</article></li>
{%- endfor %}
</ul>

</section>

{%- endblock content -%}