i18n
xaoxuu 5 years ago
parent 6366ecf256
commit 243a6f369e
  1. 13
      _config.yml
  2. 8
      layout/_partial/head.ejs
  3. 19
      layout/_partial/scripts.ejs

@ -2,7 +2,14 @@
info:
name: Material X
docs: https://xaoxuu.com/wiki/material-x/
cdn: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.6/
cdn:
css:
# style: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.6/css/style.css
js:
app: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.6/js/app.js
search: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.6/js/search.js
volantis: https://cdn.jsdelivr.net/gh/xaoxuu/volantis@1/js/volantis.min.js
############################### 主题样式 ###############################
@ -11,8 +18,8 @@ style: pure # pure: 导航栏和标题栏背景是白色
############################### 服务开关 ###############################
services:
# cdn: true
services:
scrollreveal: true
nodewaves: true
busuanzi: true

@ -58,11 +58,11 @@
<% if (config.favicon) { %>
<link rel="shortcut icon" type='image/x-icon' href="<%- url_for(config.favicon) %>">
<% } %>
<link href="https://fonts.googleapis.com/css?family=Noto+Sans+SC" rel="stylesheet">
<% if (theme.services.cdn == true) { %>
<%- css(theme.info.cdn + 'css/style.css') %>
<% if (theme.info && theme.info.cdn && theme.info.cdn.css && theme.info.cdn.css.style) { %>
<%- css(theme.info.cdn.css.style) %>
<% } else { %>
<%- css('style.css') %>
<%- css('style.css') %>
<% } %>
<script>

@ -105,10 +105,10 @@
<% if (enableValine){ %>
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
<% if (theme.valine.volantis == true) { %>
<% if (theme.services.cdn == true) { %>
<script src="https://cdn.jsdelivr.net/gh/xaoxuu/volantis@1/js/volantis.min.js"></script>
<% if (theme.info && theme.info.cdn && theme.info.cdn.js && theme.info.cdn.js.volantis) { %>
<%- js(theme.info.cdn.js.volantis) %>
<% } else { %>
<%- js('js/volantis.js') %>
<%- js(['js/volantis.js']) %>
<% } %>
<% } else { %>
<script src="https://cdn.jsdelivr.net/gh/xaoxuu/cdn-valine@1.3.4/js/valine.min.js"></script>
@ -140,13 +140,16 @@
</script>
<% } %>
<% if (theme.services.cdn == true) { %>
<%- js([theme.info.cdn + 'js/app.js', theme.info.cdn + 'js/search.js']) %>
<% if (theme.info && theme.info.cdn && theme.info.cdn.js && theme.info.cdn.js.app) { %>
<%- js(theme.info.cdn.js.app) %>
<% } else { %>
<%- js(['js/app.js', 'js/search.js']) %>
<%- js(['js/app.js']) %>
<% } %>
<% if (theme.info && theme.info.cdn && theme.info.cdn.js && theme.info.cdn.js.search) { %>
<%- js(theme.info.cdn.js.search) %>
<% } else { %>
<%- js(['js/search.js']) %>
<% } %>
<% if (page.layout == 'links') { %>
<%- js('https://cdn.jsdelivr.net/gh/toddmotto/echo@1.7.3/src/echo.js') %>

Loading…
Cancel
Save