diff --git a/_config.yml b/_config.yml index fbd9723..79a6e51 100644 --- a/_config.yml +++ b/_config.yml @@ -23,10 +23,7 @@ menu: Categories: /categories/||fa fa-folder-open Link: /link/||fa fa-link About: /about/||fa fa-heart - #二级菜单写法 - Menu||/menu/||fa fa-bars: - - subMenu1||/subMenu1/||fa fa-bars - - subMenu2||/subMenu2/||fa fa-bars +# #XXX: /xxx # Favicon @@ -157,10 +154,6 @@ lodding_bg: flink: /img/friend_404.gif post_page: /img/404.jpg -# 首页背景图片屏占比,1:100%,2:50%,1.5:75% -homepage: - ratio: 1 - post_meta: date_type: both # or created or updated 文章日期是创建日或者更新日或都显示 categories: true # or false 是否显示分类 @@ -261,10 +254,8 @@ footer_custom_text: footer_copyright: enable: true -#ICP备案信息尾部显示,pic为图标地址 ICP: enable: false - pic: /img/icp.png url: text: @@ -391,12 +382,11 @@ hr: icon-top: -20px # 主頁subtitle -# 打字效果(如果有逗号“,”,请使用转义字符 ,) +# 打字效果 subtitle: enable: true - sub: - - 今日事 , 今日畢 #逗号“,”,请使用转义字符 , - - Never put off till tomorrow what you can do today #如果有符號 ' ,記得前面加上 \ + sub1: 今日事,今日畢 + sub2: Never put off till tomorrow what you can do today #如果有符號 ' ,記得前面加上 \ diff --git a/layout/includes/additional-js.pug b/layout/includes/additional-js.pug index 2b00cbd..49253be 100644 --- a/layout/includes/additional-js.pug +++ b/layout/includes/additional-js.pug @@ -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.sub}'.split(","), + strings: ['!{theme.subtitle.sub1}','!{theme.subtitle.sub2}'], startDelay: 300, typeSpeed: 100, loop: true, @@ -56,7 +56,7 @@ if is_home() script. //首頁fullpage function alignContent() { - for (var n = $(window).height()/!{theme.homepage.ratio}, e = document.querySelectorAll(".full_page"), i = 0; i < e.length; i++) + for (var n = $(window).height(), 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(); diff --git a/layout/includes/footer.pug b/layout/includes/footer.pug index de65fac..f9fefba 100644 --- a/layout/includes/footer.pug +++ b/layout/includes/footer.pug @@ -19,8 +19,4 @@ 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 diff --git a/layout/includes/header.pug b/layout/includes/header.pug index 7d49436..b49db42 100644 --- a/layout/includes/header.pug +++ b/layout/includes/header.pug @@ -44,8 +44,8 @@ span=' '+label else .menus_item - a.site-page(href=label.split('||')[1]) - i.fa-fw(class=label.split('||')[2] aria-hidden="true") + a.site-page + i.fa-fw(class=label.split('||')[1] aria-hidden="true") span=' '+label.split('||')[0] i.fa.fa-chevron-down.menus-expand(aria-hidden="true") ul.menus_item_child diff --git a/source/img/icp.png b/source/img/icp.png deleted file mode 100644 index 9f76394..0000000 Binary files a/source/img/icp.png and /dev/null differ