From cd18120aee8eb473fcddb6d796e02bbf60a0faa9 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sun, 21 Jun 2020 00:49:17 +0200 Subject: [PATCH] Fix discussion error --- views/post.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/post.pug b/views/post.pug index aa999b2..5446a14 100644 --- a/views/post.pug +++ b/views/post.pug @@ -25,7 +25,7 @@ block content if ($post["type"] == "blog") a(href="/") blog if ($post["type"] == "note") - a(href="notes") notes + a(href="/notes") notes | > !{$post['slug']} main @@ -40,7 +40,7 @@ block content .longform__content.e-content | !{$post['content']} - if (array_key_exists('discussion', $post)) + if (array_key_exists('discussion', $post) && isset($post['discussion'])) .discussion.subsection h2 Join the discussion each $item in $post["discussion"]