seotitle -> seo_title

master
xaoxuu 4 years ago
parent d2581d6ab2
commit 84ee5c8dc5
  1. 2
      layout/_partial/head.ejs
  2. 4
      layout/_partial/meta.ejs
  3. 8
      layout/_third-party/share.ejs

@ -28,7 +28,7 @@
<!-- 页面元数据 -->
<%
var title = page.seotitle || page.title;
var title = page.seo_title || page.title;
var keywords = page.keywords || '';
var description = page.description || '';
if (is_archive()) {

@ -35,10 +35,10 @@ if (post.meta && (post.meta.footer !== undefined && post.meta.footer !== null))
<section class='meta'>
<% if (topMetas.length == 1 && topMetas.indexOf('centertitle') > -1) { %>
<% if(isPostList){ %>
<h2 class="title"><p class="p center h2"><%- post.title || post.seotitle %></p></h2><br>
<h2 class="title"><p class="p center h2"><%- post.title || post.seo_title %></p></h2><br>
<% } else { %>
<% if (post.title || page.title || config.title) { %>
<h1 class="title"><p class="p center h1"><%- post.title || post.seotitle %></p></h1><br>
<h1 class="title"><p class="p center h1"><%- post.title || post.seo_title %></p></h1><br>
<% } %>
<% } %>
<% } else { %>

@ -12,13 +12,13 @@
<% } else { %>
<a class="-mob-share-<%- item.id %>" title="<%- item.name %>" rel="external nofollow noopener noreferrer"
<% if (item.id == 'qzone'){ %>
href="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=<%- post.permalink %>&title=<%- (post.seotitle || post.title) + ' - ' + config.title %><%- (post.thumbnail) ? '&pics=' + (post.thumbnail) : '' %>&summary=<%- strip_html(post.excerpt) %>"
href="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=<%- post.permalink %>&title=<%- (post.seo_title || post.title) + ' - ' + config.title %><%- (post.thumbnail) ? '&pics=' + (post.thumbnail) : '' %>&summary=<%- strip_html(post.excerpt) %>"
<% } else if (item.id == 'qq'){ %>
href="http://connect.qq.com/widget/shareqq/index.html?url=<%- post.permalink %>&title=<%- (post.seotitle || post.title) + ' - ' + config.title %><%- (post.thumbnail) ? '&pics=' + (post.thumbnail) : '' %>&summary=<%- strip_html(post.excerpt) %>"
href="http://connect.qq.com/widget/shareqq/index.html?url=<%- post.permalink %>&title=<%- (post.seo_title || post.title) + ' - ' + config.title %><%- (post.thumbnail) ? '&pics=' + (post.thumbnail) : '' %>&summary=<%- strip_html(post.excerpt) %>"
<% } else if (item.id == 'weibo'){ %>
href="http://service.weibo.com/share/share.php?url=<%- post.permalink %>&title=<%- (post.seotitle || post.title) + ' - ' + config.title %><%- (post.thumbnail) ? '&pics=' + (post.thumbnail) : '' %>&summary=<%- strip_html(post.excerpt) %>"
href="http://service.weibo.com/share/share.php?url=<%- post.permalink %>&title=<%- (post.seo_title || post.title) + ' - ' + config.title %><%- (post.thumbnail) ? '&pics=' + (post.thumbnail) : '' %>&summary=<%- strip_html(post.excerpt) %>"
<% } else if (item.id == 'telegram'){ %>
href="https://t.me/share/url?url=<%- post.permalink %>&text=<%- (post.seotitle || post.title) + ' - ' + config.title %>"
href="https://t.me/share/url?url=<%- post.permalink %>&text=<%- (post.seo_title || post.title) + ' - ' + config.title %>"
<% } %>
>
<% if (item.img){ %>

Loading…
Cancel
Save