summaryrefslogtreecommitdiff
path: root/_posts/processPosts.js
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-12-14 20:26:19 -0500
committermattkae <mattkae@protonmail.com>2022-12-14 20:26:19 -0500
commit902081f4811a149d2aedceb155e70266e45c9a76 (patch)
tree47f95e6e63ef1a03a84284e708dbd7b7d47fcd19 /_posts/processPosts.js
parent47a7ff9ca73c660d4d6a3c5b93a8271d0a804210 (diff)
First post on plato
Diffstat (limited to '_posts/processPosts.js')
-rw-r--r--_posts/processPosts.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/_posts/processPosts.js b/_posts/processPosts.js
index 15cf4e5..47b757c 100644
--- a/_posts/processPosts.js
+++ b/_posts/processPosts.js
@@ -27,6 +27,11 @@ const posts = [
url: "_posts/hello_world.html",
title: "Hello, World!",
tags: [ "personal" ]
+ },
+ {
+ url: "_posts/plato_1.html",
+ title: "Euthyphro: the pious and the god-loved",
+ tags: [ "books" ]
}
];
@@ -138,7 +143,7 @@ function createPostPage(outputFile, postFilter) {
<section>
<h2>Posts</h2>
<ul id='post_list'>
- ${posts.filter(post => !postFilter || post.tags.includes(postFilter)).map(createPostLink)}
+ ${posts.filter(post => !postFilter || post.tags.includes(postFilter)).map(createPostLink).join('')}
</ul>
</section>
</body>