i18n
xaoxuu 5 years ago
parent c9cb726880
commit 53017ab857
  1. 6
      _config.yml
  2. 4
      layout/_partial/cover.ejs
  3. 6
      source/js/app.js
  4. 2
      source/less/_toc.less

@ -4,10 +4,10 @@ info:
docs: https://xaoxuu.com/wiki/material-x/
cdn: # 把对应的那一行注释掉就使用本地的文件
css:
style: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.16/css/style.css
style: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.17/css/style.css
js:
app: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.16/js/app.js
search: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.16/js/search.js
app: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.17/js/app.js
search: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.17/js/search.js
volantis: https://cdn.jsdelivr.net/gh/xaoxuu/volantis@1/js/volantis.min.js

@ -26,8 +26,8 @@ if (theme.cover) {
<%- partial('../_cover/search') %>
<% } %>
</div>
<%- partial('header', null, {cache: !config.relative_link, path: path}) %>
<%- partial('header', null, {cache: false, path: path}) %>
</div>
<% } else { %>
<%- partial('header', null, {cache: !config.relative_link, path: path}) %>
<%- partial('header', null, {cache: false, path: path}) %>
<% } %>

@ -123,8 +123,10 @@ var customSearch;
index = index[0];
idname = idname.split(index)[0];
}
$active_link = $('#' + idname, $headerMenu);
setUnderline($active_link);
if (idname && $headerMenu) {
$active_link = $('#' + idname, $headerMenu);
setUnderline($active_link);
}
}
function setHeaderMenuPhone() {

@ -11,7 +11,7 @@
top: 0;
}
.content{
padding: @gap/2 0;
padding: @gap/2 0 @gap 0;
max-height: 500px;
overflow: auto;
&.pure{

Loading…
Cancel
Save