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

Revert "添加部分功能"
This commit is contained in:
Jerry Wong authored and GitHub committed 2019-09-22 20:36:17 +08:00 Unverified
commit eecfaaf124
5 files changed
+8 -22

No files matched your search

+4 -14
View File
@@ -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 #如果有符號 ' ,記得前面加上 \
+2 -2
View File
@@ -45,7 +45,7 @@ if is_home() && theme.subtitle.enable
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();
-4
View File
@@ -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
Loaded 3 of 5 files, more files were not shown because too many files have changed in this diff. Show more