diff --git a/public/assets/css/blog.css b/public/assets/css/blog.css index 178af04..89f0648 100644 --- a/public/assets/css/blog.css +++ b/public/assets/css/blog.css @@ -80,6 +80,20 @@ text-decoration: underline; } +.buttons { + margin: 10vh auto; + width: min-content; +} +.buttons button.secondary.icon-btn { + cursor: pointer; + width: 35px; + height: 35px; +} + +footer { + margin-top: 160px; +} + @media screen and (max-width: 900px) { .blog-card { flex-flow: column; @@ -92,10 +106,13 @@ min-height: 250px; border-radius: 10px 10px 0 0; } + footer { + margin-top: 100px; + } } @media screen and (max-width: 450px) { .blog-card .cover { min-height: 200px; } -} \ No newline at end of file +} diff --git a/src/routers/blog.js b/src/routers/blog.js index c68a97a..2e85cc4 100644 --- a/src/routers/blog.js +++ b/src/routers/blog.js @@ -49,13 +49,16 @@ router.get('/', async (request, response) => { // RSS feed router.get('/feed.xml', async (request, response) => { - const pubDate = new Date(postList()[0].postInfo.date).toUTCString(); + // Adds the pubDate to the post array + const posts = postList().map((post) => { + post.postInfo.pubDate = new Date(post.postInfo.date).toUTCString(); + return post; + }); response.set('Content-Type', 'application/rss+xml'); response.render('blog-rss', { layout: false, - postList, - pubDate + posts }); }); diff --git a/views/blog-rss.handlebars b/views/blog-rss.handlebars index 83e54ca..e23fe34 100644 --- a/views/blog-rss.handlebars +++ b/views/blog-rss.handlebars @@ -6,7 +6,8 @@ https://pretendo.network/blog The latest updates in condensed chunks. - {{ this.pubDate }} + {{ posts.[0].postInfo.pubDate }} + 30 Web development https://pretendo.network/assets/images/opengraph/opengraph-image.png @@ -14,12 +15,13 @@ https://pretendo.network/blog - {{#each postList }} + {{#each posts }} - {{ this.postInfo.title }} - https://pretendo.network/blog/{{this.slug}} + {{ this.postInfo.title }} {{ this.postInfo.caption }} + https://pretendo.network/blog/{{this.slug}} https://pretendo.network/blog/{{this.slug}} + {{ this.postInfo.pubDate }} {{/each}} diff --git a/views/blog.handlebars b/views/blog.handlebars index 5dc41eb..2fee266 100644 --- a/views/blog.handlebars +++ b/views/blog.handlebars @@ -33,6 +33,15 @@ {{/each}} +
+ + + + + +
+ {{> footer }} \ No newline at end of file