summaryrefslogtreecommitdiff
path: root/static/src/index.md
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2021-07-31 11:35:39 -0600
committerBrian Picciano <mediocregopher@gmail.com>2021-07-31 11:35:39 -0600
commitf1998c321a4eec6d75b58d84aa8610971bf21979 (patch)
treea90783eb296cc50e1c48433f241624f26b99be27 /static/src/index.md
parent03a35dcc38b055f15df160bd300969e3b703d4b1 (diff)
move static files into static sub-dir, refactor nix a bit
Diffstat (limited to 'static/src/index.md')
-rw-r--r--static/src/index.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/static/src/index.md b/static/src/index.md
new file mode 100644
index 0000000..30727d6
--- /dev/null
+++ b/static/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 -%}