summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_posts/processPosts.js2
-rw-r--r--posts.html2
-rw-r--r--posts/tag_[object Object].html36
-rw-r--r--posts/tag_personal.html2
4 files changed, 3 insertions, 39 deletions
diff --git a/_posts/processPosts.js b/_posts/processPosts.js
index 55c97df..d4b2a2e 100644
--- a/_posts/processPosts.js
+++ b/_posts/processPosts.js
@@ -47,7 +47,7 @@ function createPostServableFile(post) {
const baseFilePath = path.join(__dirname, '..', post.url);
const stats = fs.statSync(baseFilePath);
const content = fs.readFileSync(baseFilePath);
- const fileName = post.url.substring(post.url.lastIndexOf('/'));
+ const fileName = post.url.substring(post.url.lastIndexOf('/') + 1);
const filePath = path.join(dir, fileName);
fs.writeFileSync(filePath,`
<!DOCTYPE html>
diff --git a/posts.html b/posts.html
index 3f75430..14a691c 100644
--- a/posts.html
+++ b/posts.html
@@ -36,7 +36,7 @@
<h2>Posts</h2>
<ul id='post_list'>
- <li><a href="/posts//hello_world.html">Hello, World!</a></li>
+ <li><a href="/posts/hello_world.html">Hello, World!</a></li>
</ul>
</section>
diff --git a/posts/tag_[object Object].html b/posts/tag_[object Object].html
deleted file mode 100644
index 1999d78..0000000
--- a/posts/tag_[object Object].html
+++ /dev/null
@@ -1,36 +0,0 @@
-
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta charset="utf-8">
- <link rel="stylesheet" href="/index.css">
- <link rel="stylesheet" href="/posts.css">
- <title>Matthew Kosarek</title>
- <link rel="shortcut icon" href="/favicon/favicon.ico" type="image/x-icon">
- </head>
- <body>
- <header>
- <h1>Matthew Kosarek</h1>
- <nav>
- <ul>
- <li><a href='/'>&#127969; Home</a></li>
- <li><a href='/resume.html'>&#128216; CV</a></li>
- <li><a href="https://www.linkedin.com/in/matthew-kosarek/">🏢 LinkedIn</a></li>
- <li><a href='/posts.html'>&#128221; Posts</a></li>
- </ul>
- </nav>
- </header>
-
-
-
- <section>
- <h2>Posts</h2>
- <ul id='post_list'>
-
- <li><a href="/posts//hello_world.html">Hello, World!</a></li>
-
- </ul>
- </section>
- </body>
-</html>
diff --git a/posts/tag_personal.html b/posts/tag_personal.html
index 1999d78..801fd7c 100644
--- a/posts/tag_personal.html
+++ b/posts/tag_personal.html
@@ -28,7 +28,7 @@
<h2>Posts</h2>
<ul id='post_list'>
- <li><a href="/posts//hello_world.html">Hello, World!</a></li>
+ <li><a href="/posts/hello_world.html">Hello, World!</a></li>
</ul>
</section>