Merge pull request #39 from jerryc127/revert-37-dev

Revert "添加部分功能"
This commit is contained in:
Jerry Wong
2019-09-22 20:36:17 +08:00
committed by GitHub
Unverified
5 changed files with 9 additions and 23 deletions
+4 -14
View File
@@ -23,10 +23,7 @@ menu:
Categories: /categories/||fa fa-folder-open Categories: /categories/||fa fa-folder-open
Link: /link/||fa fa-link Link: /link/||fa fa-link
About: /about/||fa fa-heart About: /about/||fa fa-heart
#二级菜单写法 # #XXX: /xxx
Menu||/menu/||fa fa-bars:
- subMenu1||/subMenu1/||fa fa-bars
- subMenu2||/subMenu2/||fa fa-bars
# Favicon # Favicon
@@ -157,10 +154,6 @@ lodding_bg:
flink: /img/friend_404.gif flink: /img/friend_404.gif
post_page: /img/404.jpg post_page: /img/404.jpg
# 首页背景图片屏占比,1100%250%1.575%
homepage:
ratio: 1
post_meta: post_meta:
date_type: both # or created or updated 文章日期是创建日或者更新日或都显示 date_type: both # or created or updated 文章日期是创建日或者更新日或都显示
categories: true # or false 是否显示分类 categories: true # or false 是否显示分类
@@ -261,10 +254,8 @@ footer_custom_text:
footer_copyright: footer_copyright:
enable: true enable: true
#ICP备案信息尾部显示,pic为图标地址
ICP: ICP:
enable: false enable: false
pic: /img/icp.png
url: url:
text: text:
@@ -391,12 +382,11 @@ hr:
icon-top: -20px icon-top: -20px
# 主頁subtitle # 主頁subtitle
# 打字效果(如果有逗号“,”,请使用转义字符 ,) # 打字效果
subtitle: subtitle:
enable: true enable: true
sub: sub1: 今日事,今日畢
- 今日事 , 今日畢 #逗号“,”,请使用转义字符 , sub2: Never put off till tomorrow what you can do today #如果有符號 ' ,記得前面加上 \
- Never put off till tomorrow what you can do today #如果有符號 ' ,記得前面加上 \
+3 -3
View File
@@ -42,10 +42,10 @@ if theme.translate && theme.translate.enable
if is_home() && theme.subtitle.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. script.
var typed = new Typed(".subtitle", { var typed = new Typed(".subtitle", {
strings: '!{theme.subtitle.sub}'.split(","), strings: ['!{theme.subtitle.sub1}','!{theme.subtitle.sub2}'],
startDelay: 300, startDelay: 300,
typeSpeed: 100, typeSpeed: 100,
loop: true, loop: true,
@@ -56,7 +56,7 @@ if is_home()
script. script.
//首頁fullpage //首頁fullpage
function alignContent() { 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"; e[i].style.height = n + "px";
$("#site-info").each(function () { $("#site-info").each(function () {
var x = $(this).height(); var x = $(this).height();
-4
View File
@@ -19,8 +19,4 @@
if theme.ICP.enable if theme.ICP.enable
.icp .icp
a(href=theme.ICP.url) 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 span=theme.ICP.text
+2 -2
View File
@@ -44,8 +44,8 @@
span=' '+label span=' '+label
else else
.menus_item .menus_item
a.site-page(href=label.split('||')[1]) a.site-page
i.fa-fw(class=label.split('||')[2] aria-hidden="true") i.fa-fw(class=label.split('||')[1] aria-hidden="true")
span=' '+label.split('||')[0] span=' '+label.split('||')[0]
i.fa.fa-chevron-down.menus-expand(aria-hidden="true") i.fa.fa-chevron-down.menus-expand(aria-hidden="true")
ul.menus_item_child ul.menus_item_child
Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB