diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2021-01-21 17:22:53 -0700 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2021-01-21 17:22:53 -0700 |
commit | bcf9b230be6d74c71567fd0771b31d47d8dd39c7 (patch) | |
tree | 2d0fc16142d55bbd5876ac6b8174c2857883b40e /src/index.md | |
parent | d57fd70640948cf20eeb41b56e8d4e23e616cec0 (diff) |
build the blog with nix
Diffstat (limited to 'src/index.md')
-rw-r--r-- | src/index.md | 23 |
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 -%} |