mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
detect link posts properly in the main layout
This commit is contained in:
parent
742f32521c
commit
9c7e1f9568
1 changed files with 3 additions and 3 deletions
|
|
@ -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 %>">→ <%= 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 %>
|
||||
|
|
|
|||
Loading…
Reference in a new issue