增加今日诗词

i18n
xaoxuu 6 years ago
parent aa2b053c5f
commit 4769b4b354
  1. 2
      _config.yml
  2. 7
      layout/_widget/author.ejs
  3. 1
      source/less/_widget.less

@ -5,7 +5,7 @@ theme_info:
version: 1.0-beta11
docs: https://xaoxuu.com/wiki/material-x/
# 主题的CDN地址,如果你的源码托管到国内CDN可以更改此链接。如需启用CDN,请在主目录的config中设置import,详见文档。
cdn: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@18.12.34/
cdn: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@18.12.35/
##########################################################################
# 请务必阅读官方文档!!!
# 请务必阅读官方文档!!!

@ -5,7 +5,7 @@
<img class='avatar' src='<%- url_for(item.avatar) %>'/>
</div>
<%} %>
<% if (item.title || item.body) { %>
<% if (item.title || item.body || item.jinrishici) { %>
<div class='text'>
<% if (item.title){ %>
<h2><%- item.title %></h2>
@ -13,6 +13,10 @@
<% if (item.body){ %>
<%- markdown(item.body) %>
<% } %>
<% if (item.jinrishici){ %>
<p><span id="jinrishici-sentence"><%- config.title %></span></p>
<script src="https://sdk.jinrishici.com/v2/browser/jinrishici.js" charset="utf-8"></script>
<% } %>
</div>
<% } %>
<% if (item.social == true && config.social) { %>
@ -25,5 +29,4 @@
</div>
<% } %>
</div>
</section>

@ -135,6 +135,7 @@
}
p{
font-size: @fontsize_base;
font-weight: bold;
text-align: center;
margin: @gap/2 @gap/2 0 @gap/2;
empty-cells: hide;

Loading…
Cancel
Save