diff options
Diffstat (limited to 'src/posts')
-rw-r--r-- | src/posts/index.njk | 20 | ||||
-rw-r--r-- | src/posts/posts.json | 5 |
2 files changed, 25 insertions, 0 deletions
diff --git a/src/posts/index.njk b/src/posts/index.njk new file mode 100644 index 0000000..cfa29b3 --- /dev/null +++ b/src/posts/index.njk @@ -0,0 +1,20 @@ +--- +layout: base.njk +eleventyExcludeFromCollections: true +title: Posts +--- +<h2>Posts</h2> +<div class="post-lists"> + {% for post in collections.posts %} + <div class="post-data"> + <div class="post-date"> + {{post.date | dateFilter}} + </div> + <div class="post-title color-red"> + <a href="{{post.url}}"> {{post.data.title}}</a> + </div> + </div> + + {% endfor %} +</div> + diff --git a/src/posts/posts.json b/src/posts/posts.json new file mode 100644 index 0000000..0cb18be --- /dev/null +++ b/src/posts/posts.json @@ -0,0 +1,5 @@ +{ + "layout": "posts", + "tags": "posts" + +}
\ No newline at end of file |