diff options
Diffstat (limited to '_posts')
-rw-r--r-- | _posts/plato_2.html | 4 | ||||
-rw-r--r-- | _posts/postList.js | 16 | ||||
-rw-r--r-- | _posts/processPosts.js | 14 |
3 files changed, 21 insertions, 13 deletions
diff --git a/_posts/plato_2.html b/_posts/plato_2.html new file mode 100644 index 0000000..25ceec6 --- /dev/null +++ b/_posts/plato_2.html @@ -0,0 +1,4 @@ +<h2>Introduction</h2> +<p> + Continuing in my reading of <cite>A Plato Reader: Eight Essential Dialogues</cite>, I recently came across <i>Phaedo</i>. +</p>
\ No newline at end of file diff --git a/_posts/postList.js b/_posts/postList.js new file mode 100644 index 0000000..bc0f919 --- /dev/null +++ b/_posts/postList.js @@ -0,0 +1,16 @@ +module.exports = [ + { + 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" ] + }, + { + url: "_posts/plato2.html", + title: "Phaedo: Death and the Soul" + } +]; diff --git a/_posts/processPosts.js b/_posts/processPosts.js index 47b757c..2bd6ff1 100644 --- a/_posts/processPosts.js +++ b/_posts/processPosts.js @@ -2,6 +2,7 @@ const fs = require('fs'); const path = require('path'); +const posts = require('./postList'); const tags = [ { @@ -22,19 +23,6 @@ const tags = [ } ] -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" ] - } -]; - function createTagFile(tag) { const dir = path.resolve(path.join(__dirname, '..', 'posts')); |