This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
mystic/themes/hueman/layout/common/post/title.ejs

15 lines
542 B
Plaintext
Raw Normal View History

2018-09-03 07:41:16 +00:00
<% if (post.link) { %>
<h1 itemprop="name">
<a class="<%= class_name %>" href="<%- url_for(post.link) %>" target="_blank" itemprop="url"><%= post.title %></a>
</h1>
<% } else if (post.title) { %>
<% if (typeof(linkable) !== 'undefined' && linkable) { %>
<h1 class="<%= class_name %>" itemprop="name">
<a href="<%- url_for(post.path) %>"><%= post.title %></a>
</h1>
<% } else { %>
<h1 class="<%= class_name %>" itemprop="name">
<%= post.title %>
</h1>
<% } %>
<% } %>