1. Feature: 可设置首页背景图片屏占比

2. Optimization: 优化多级菜单的使用方式
3. Optimization: 支持自定义多个主頁subtitle
4. Optimization: ICP备案信息可显示备案图标
This commit is contained in:
zhengql
2019-09-19 23:30:21 +08:00
Unverified
parent 3d09a9331b
commit f6d70e5863
5 changed files with 23 additions and 9 deletions
+3 -3
View File
@@ -42,10 +42,10 @@ if theme.translate && theme.translate.enable
if is_home() && theme.subtitle.enable
script(src="https://cdn.jsdelivr.net/npm/typed.js@2.0.9")
script(src="https://cdn.jsdelivr.net/npm/typed.js@2.0.9")
script.
var typed = new Typed(".subtitle", {
strings: ['!{theme.subtitle.sub1}','!{theme.subtitle.sub2}'],
strings: '!{theme.subtitle.sub}'.split(","),
startDelay: 300,
typeSpeed: 100,
loop: true,
@@ -56,7 +56,7 @@ if is_home()
script.
//首頁fullpage
function alignContent() {
for (var n = $(window).height(), e = document.querySelectorAll(".full_page"), i = 0; i < e.length; i++)
for (var n = $(window).height()/!{theme.homepage.ratio}, e = document.querySelectorAll(".full_page"), i = 0; i < e.length; i++)
e[i].style.height = n + "px";
$("#site-info").each(function () {
var x = $(this).height();
+4
View File
@@ -19,4 +19,8 @@
if theme.ICP.enable
.icp
a(href=theme.ICP.url)
if theme.lazyload.enable
img.lozad(data-src=`${theme.ICP.pic}` onerror=`onerror=null;src='${theme.lodding_bg.flink}'` style="height: 30px; vertical-align: bottom;")
else
img(src=`${theme.ICP.pic}` onerror=`onerror=null;src='${theme.lodding_bg.flink}'` style="height: 30px; vertical-align: bottom;" )
span=theme.ICP.text
+2 -2
View File
@@ -44,8 +44,8 @@
span=' '+label
else
.menus_item
a.site-page
i.fa-fw(class=label.split('||')[1] aria-hidden="true")
a.site-page(href=label.split('||')[1])
i.fa-fw(class=label.split('||')[2] aria-hidden="true")
span=' '+label.split('||')[0]
i.fa.fa-chevron-down.menus-expand(aria-hidden="true")
ul.menus_item_child