blog/themes/chameleon/layout/_partial/post/title.ejs

14 lines
451 B
Plaintext
Raw Normal View History

<% if (post.link) { %>
2018-09-10 09:21:59 +00:00
<h1 itemprop="name">
<a class="<%= class_name %>" href="<%- url_for(post.link) %>" itemprop="url"><%= post.title %></a>
2018-09-10 09:21:59 +00:00
</h1>
<% } else if (post.title) { %>
<% if (index) { %>
2018-09-10 09:21:59 +00:00
<h1 itemprop="name">
<a class="<%= class_name %>" href="<%- url_for(post.path) %>"><%= post.title %></a>
</h1>
<% } else { %>
<h1 class="<%= class_name %>" itemprop="headline name"><%= post.title %></h1>
2018-09-10 09:21:59 +00:00
<% } %>
<% } %>