detect link posts properly in the main layout

This commit is contained in:
Sami Samhuri 2017-09-20 21:20:17 -07:00
parent 742f32521c
commit 9c7e1f9568
No known key found for this signature in database
GPG key ID: F76F41F04D99808F

View file

@ -98,7 +98,7 @@
<div class="clearfix"></div>
</header>
<% if (typeof link != 'undefined') { -%>
<% if (typeof link != 'undefined' && link !== null) { -%>
<article class="container">
<header>
<h2><a href="<%= link %>">&rarr; <%= title %></a></h2>
@ -110,7 +110,7 @@
<div class="row clearfix">
<p class="fin clearfix"><i class="fa fa-code"></i></p>
</div>
<% } else if (typeof date != 'undefined') { -%>
<% } else if (typeof date != 'undefined' && date !== null) { -%>
<article class="container">
<header>
<h2><a href="<%= url %>"><%= title %></a></h2>
@ -121,7 +121,7 @@
<div class="row clearfix">
<p class="fin"><i class="fa fa-code"></i></p>
</div>
<% } else if (typeof title != 'undefined') { -%>
<% } else if (typeof title != 'undefined' && title !== null) { -%>
<article class="container">
<h2><%= title %></h2>
<%- yield %>