summaryrefslogtreecommitdiff
path: root/src/index.md
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2021-01-21 17:22:53 -0700
committerBrian Picciano <mediocregopher@gmail.com>2021-01-21 17:22:53 -0700
commitbcf9b230be6d74c71567fd0771b31d47d8dd39c7 (patch)
tree2d0fc16142d55bbd5876ac6b8174c2857883b40e /src/index.md
parentd57fd70640948cf20eeb41b56e8d4e23e616cec0 (diff)
build the blog with nix
Diffstat (limited to 'src/index.md')
-rw-r--r--src/index.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/index.md b/src/index.md
new file mode 100644
index 0000000..30727d6
--- /dev/null
+++ b/src/index.md
@@ -0,0 +1,23 @@
+---
+layout: default
+---
+
+{%- if site.posts.size > 0 -%}
+<ul id="posts-list">
+ {%- for post in site.posts -%}
+ {%- if post.hide -%}{%- continue -%}{%- endif -%}
+ <li>
+ <h2>
+ <a href="{{ post.url | relative_url }}">
+ {{ post.title | escape }}
+ </a>
+ </h2>
+ <span>{{ post.date | date: site.date_format }}</span>
+ {%- if post.updated %}
+ <span>(Updated {{ post.updated | date: site.date_format }})</span>
+ {% endif -%}
+ <p>{{ post.description }}</p>
+ </li>
+ {%- endfor -%}
+</ul>
+{%- endif -%}