diff options
author | terminaldweller <thabogre@gmail.com> | 2022-07-06 10:01:50 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-07-06 10:01:50 +0000 |
commit | dc57f759c616a23b1baf10b1ea71cca6ba581831 (patch) | |
tree | e641e4da50d2b616c10090b7178ec6ed86815f0d /views/archive.ejs | |
parent | WIP, adding rss to the blog (diff) | |
download | blog-dc57f759c616a23b1baf10b1ea71cca6ba581831.tar.gz blog-dc57f759c616a23b1baf10b1ea71cca6ba581831.zip |
now the blog uses the db for everything. now need to decide on how to populate the DB and prevent duplication
Diffstat (limited to 'views/archive.ejs')
-rw-r--r-- | views/archive.ejs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/archive.ejs b/views/archive.ejs index 36191de..72b963d 100644 --- a/views/archive.ejs +++ b/views/archive.ejs @@ -9,9 +9,9 @@ <body> <script>0</script> <div class="article"> - <% data.mds.forEach(function(md) { %> + <% data.blogPosts.forEach(function(blogPost) { %> <ul> - <li><a href=<%= "/mds/"+md %> target="_self" rel="noreferrer noopener" type="text/html"><%= md %></a></li> + <li><a href=<%= "/posts/"+blogPost.slug %> target="_self" rel="noreferrer noopener" type="text/html"><%= blogPost.title %></a></li> </ul> <% }) %> </div> |