aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
blob: cf3e4b39d3e6f316cfbf32f64793fdde67db4e2f (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
{% extends "base.html" %}

{%- block content -%}

<div class="content">
  <div id="blog" class="section times">
    <b>articles ⇢</b>
    {%- set blog = get_section(path="blog/_index.md") -%}
    {%- set post_count = blog.pages | length -%}
    <ul class="post-list">
      {%- for post in blog.pages %}
      <li>
        <a href="{{ post.path | safe }}">{{ post.title }}</a>
        <span class="post-date">{{ post.date | date(format="%B %d, %Y")}}</span>
      </li>
      {%- endfor %}
    </ul>

    <b>notes ⇢</b>
    {%- set notes = get_section(path="notes/_index.md") -%}
    {%- set post_count = notes.pages | length -%}
    <ul class="post-list">
      {%- for post in notes.pages %}
      <li>
        <a href="{{ post.path | safe }}">{{ post.title }}</a>
        <span class="post-date">{{ post.date | date(format="%B %d, %Y")}}</span>
      </li>
      {%- endfor %}
    </ul>
  </div>
</div>

{%- endblock content -%}