mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-06-05 21:01:46 +08:00
+14
-4
@@ -23,7 +23,10 @@ menu:
|
||||
Categories: /categories/||fa fa-folder-open
|
||||
Link: /link/||fa fa-link
|
||||
About: /about/||fa fa-heart
|
||||
# #XXX: /xxx
|
||||
#二级菜单写法
|
||||
Menu||/menu/||fa fa-bars:
|
||||
- subMenu1||/subMenu1/||fa fa-bars
|
||||
- subMenu2||/subMenu2/||fa fa-bars
|
||||
|
||||
|
||||
# Favicon
|
||||
@@ -154,6 +157,10 @@ 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 是否显示分类
|
||||
@@ -254,8 +261,10 @@ footer_custom_text:
|
||||
footer_copyright:
|
||||
enable: true
|
||||
|
||||
#ICP备案信息尾部显示,pic为图标地址
|
||||
ICP:
|
||||
enable: false
|
||||
pic: /img/icp.png
|
||||
url:
|
||||
text:
|
||||
|
||||
@@ -382,11 +391,12 @@ hr:
|
||||
icon-top: -20px
|
||||
|
||||
# 主頁subtitle
|
||||
# 打字效果
|
||||
# 打字效果(如果有逗号“,”,请使用转义字符 ,)
|
||||
subtitle:
|
||||
enable: true
|
||||
sub1: 今日事,今日畢
|
||||
sub2: Never put off till tomorrow what you can do today #如果有符號 ' ,記得前面加上 \
|
||||
sub:
|
||||
- 今日事 , 今日畢 #逗号“,”,请使用转义字符 ,
|
||||
- Never put off till tomorrow what you can do today #如果有符號 ' ,記得前面加上 \
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
Reference in New Issue
Block a user