hexo-theme-ayer/layout/_partial/post/title.ejs
2019-12-03 19:37:44 +08:00

18 lines
490 B
Plaintext

<% if (post.link){ %>
<h2 itemprop="name">
<a class="<%= class_name %>" href="<%- url_for(post.link) %>" itemprop="url"
><%= post.title %></a
>
</h2>
<% } else if (post.title){ %> <% if (index){ %>
<h2 itemprop="name">
<a class="<%= class_name %>" href="<%- url_for(post.path) %>"
><%= post.title %></a
>
</h2>
<% } else { %>
<h1 class="<%= class_name %> sea-center" style="border-left:0" itemprop="name">
<%= post.title %>
</h1>
<% } %> <%- partial('topping') %> <% } %>