summaryrefslogtreecommitdiff
path: root/_posts/processPosts.js
diff options
context:
space:
mode:
Diffstat (limited to '_posts/processPosts.js')
-rw-r--r--_posts/processPosts.js14
1 files changed, 1 insertions, 13 deletions
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'));