From 9c7e1f956867c49c48713f1fa9062869f552e5f6 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Wed, 20 Sep 2017 21:20:17 -0700 Subject: [PATCH] detect link posts properly in the main layout --- public/_layout.ejs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/_layout.ejs b/public/_layout.ejs index 4ad9b56..b47c64b 100644 --- a/public/_layout.ejs +++ b/public/_layout.ejs @@ -98,7 +98,7 @@
- <% if (typeof link != 'undefined') { -%> + <% if (typeof link != 'undefined' && link !== null) { -%>

→ <%= title %>

@@ -110,7 +110,7 @@

- <% } else if (typeof date != 'undefined') { -%> + <% } else if (typeof date != 'undefined' && date !== null) { -%>

<%= title %>

@@ -121,7 +121,7 @@

- <% } else if (typeof title != 'undefined') { -%> + <% } else if (typeof title != 'undefined' && title !== null) { -%>

<%= title %>

<%- yield %>