master
xaoxuu 4 years ago
parent d4c31bfefe
commit eb601e932c
  1. 14
      layout/_meta/title.ejs

@ -1,15 +1,13 @@
<% if(isPostList){ %>
<h2 class="title">
<a href="<%- url_for(post.link || post.path) %>">
<%- post.title ? post.title : date(post.date, theme.meta.date.format) %>
<%- (post.title || post.seo_title) ? (post.title || post.seo_title) : date(post.date, theme.meta.date.format) %>
</a>
</h2>
<% } else { %>
<% if (post.title || page.title || config.title) { %>
<h1 class="title">
<a href="<%- url_for(post.link || post.path) %>">
<%- post.title ? post.title : date(post.date, theme.meta.date.format) %>
</a>
</h1>
<% } %>
<h1 class="title">
<a href="<%- url_for(post.link || post.path) %>">
<%- (post.title || post.seo_title) ? (post.title || post.seo_title) : date(post.date, theme.meta.date.format) %>
</a>
</h1>
<% } %>

Loading…
Cancel
Save