i18n
xaoxuu 6 years ago
parent 1e3c52e0a2
commit b7dc9840a4
  1. 21
      _config.yml
  2. 11
      layout/_partial/article.ejs
  3. 4
      layout/_partial/scripts.ejs

@ -1,7 +1,7 @@
#####################################
## Material X ##
## version: 1.0 beta2 ##
## updated: 2018-11-25 ##
## version: 1.0 beta3 ##
## updated: 2018-12-11 ##
#####################################
# >> 主题配置写法示例 ---------------------------------------------------------------------
@ -30,9 +30,9 @@ announcement: '本站使用 <b><a href="https://xaoxuu.com/wiki/material-x/">Mat
# 友链的写法示例
links:
- name: xaoxuu's blog
avatar: https://xaoxuu.com/assets/img/avatar.jpg
url: https://xaoxuu.com/blog
- name:
avatar:
url:
# 页脚社交信息的写法示例
social:
@ -50,10 +50,11 @@ motto: 这是我的座右铭
# 百度统计key
baidu_analytics_key: xxx
# leancloud统计
leancloud_analytics:
appId: xxx
appKey: xxx
# 如果你用了leancloud的服务,在博客主目录的config中提供app_id和app_key
leancloud:
app_id: xxx
app_key: xxx
# >> 主题配置 ---------------------------------------------------------------------
@ -99,7 +100,7 @@ widgets:
color: '#3DC550' # 主题色
volume: 0.5 # 默认音量大小(0~1之间)
mode: circulation # random (随机) single (单曲) circulation (列表循环) order (列表)
autoplay: false # false(手动播放) true(自动播放)
# autoplay: true # false(手动播放) true(自动播放)
server: netease # netease(网易云音乐)tencent(QQ音乐) xiami(虾米) kugou(酷狗)
type: playlist # song (单曲) album (专辑) playlist (歌单) search (搜索)
id: 746319661 # 歌曲/专辑/歌单 ID

@ -9,8 +9,8 @@
<i class="fas fa-calendar-alt fa-fw" aria-hidden="true"></i>
<%= date(post.date, config.date_format) %>
</time>
<% if (config.leancloud_analytics && config.leancloud_analytics.app_id && config.leancloud_analytics.app_key) { %>
<div class="browse leancloud_analytics"><i class="fas fa-eye fa-fw" aria-hidden="true"></i>
<% if (config.leancloud && config.leancloud.app_id && config.leancloud.app_key) { %>
<div class="browse leancloud"><i class="fas fa-eye fa-fw" aria-hidden="true"></i>
<span id="<%= url_for(post.path) %>" class="leancloud_visitors" data-flag-title="<%= post.title %>">
<span class="leancloud-visitors-count"></span>
</span>
@ -127,8 +127,8 @@
<% if (post.comments) { %>
<h4><i class="fas fa-comments fa-fw" aria-hidden="true"></i>&nbsp;评论</h4>
<% if (config.disqus_shortname) { %>
<h4><i class="fas fa-comments fa-fw" aria-hidden="true"></i>&nbsp;Disqus评论</h4>
<section id="comments">
<div id="disqus_thread">
无法加载评论系统,请确保您的网络能够正常访问 <a href="https://disqus.com">Disqus</a> 。
@ -137,7 +137,6 @@
<% } %>
<% if (config.livere_uid){ %>
<h4><i class="fas fa-comments fa-fw" aria-hidden="true"></i>&nbsp;LiveRe评论</h4>
<section id="comments">
<div id="lv-container" data-id="city" data-uid="<%= config.livere_uid %>">
<noscript>为正常使用来必力评论功能请激活JavaScript</noscript>
@ -147,10 +146,8 @@
<% if (config.valine){ %>
<% if (config.valine.enable && config.valine.app_id && config.valine.app_key){ %>
<h4><i class="fas fa-comments fa-fw" aria-hidden="true"></i>&nbsp;Valine评论</h4>
<div class="subtitle">
<h6><b>文明评论,请勿灌水。</b>为了便于区分和接收回复提醒,请您在留言时填写一下<b>昵称</b>和<b>邮箱</b>。
不定期清理没有昵称和灌水的评论。</h6>
<h6><b>文明评论,请勿灌水。</b>为了便于区分和接收回复提醒,请您在留言时填写一下<b>昵称</b>和<b>邮箱</b>。</h6>
<div>
<section id="comments">
<div id="valine_container" class="valine_thread">

@ -82,9 +82,9 @@
<% } %>
<% if (config.leancloud_analytics) { %>
<% if (config.leancloud) { %>
<script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.4.js"></script>
<script>AV.initialize("<%= config.leancloud_analytics.app_id %>", "<%= config.leancloud_analytics.app_key %>");</script>
<script>AV.initialize("<%= config.leancloud.app_id %>", "<%= config.leancloud.app_key %>");</script>
<script>
function showTime(Counter) {
var query = new AV.Query(Counter);

Loading…
Cancel
Save