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

23 lines
713 B
Plaintext

<% if (post.link) { %>
<h1 itemprop="name">
<a class="<%= class_name %>" href="<%- url_for(post.link) %>" itemprop="url"><%= post.title %></a>
</h1>
<% } else if (post.title) { %>
<% if (index) { %>
<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 %>
<%/* Share button */%>
<a class="share-button" id="share-click">
<svg viewBox="0 50 1635 1635">
<title>Share post</title>
<desc>Share icon</desc>
<use href="/svg/share.svg#share"/>
</svg>
</a>
</h1>
<% } %>
<% } %>