1. Feature: 可關閉圖片懶加載

2. Feature: 增加頁面排版,可選擇把右邊欄放在左邊
3. Feature: 增加 Note (Bootstrap Callout) (移植於next主題)
4. Feature: 手機上能夠查看TOC
5. Feature: 增加直達評論按鈕
6. Fix: 修復post頁在寬度1024px下的顯示bug
7. Fix: 修復代碼框部分語言沒有顯示正確的代碼語言
8. Fix: 修復設置裏把Disqus註釋掉無法運行的bug
This commit is contained in:
hwy0127@gmail.com committed 2019-08-11 19:57:09 +08:00
1 parent 49a9995a3d
commit 6cdd19e07f
28 files changed
+601 -143

No files matched your search

+21 -3
View File
@@ -126,8 +126,6 @@ cdn:
jquery: https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js jquery: https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js
fancybox: https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js fancybox: https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js
js-cookies: https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js js-cookies: https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js
lozy: https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js
# Post info settings # Post info settings
# --------------- # ---------------
@@ -376,10 +374,11 @@ hr:
subtitle: subtitle:
enable: true enable: true
sub1: 今日事,今日畢 sub1: 今日事,今日畢
sub2: Never put off till tomorrow what you can do today sub2: Never put off till tomorrow what you can do today #如果有符號 ' ,記得前面加上 \
#側邊欄顯示設置 #側邊欄顯示設置
aside: aside:
position: right # left or right
card_author: true card_author: true
card_announcement: true card_announcement: true
card_recent_post: true card_recent_post: true
@@ -418,3 +417,22 @@ baidu_push:
#prefetch預加載 #prefetch預加載
instantpage: instantpage:
enable: true enable: true
note:
# Note tag style values:
# - simple bs-callout old alert style. Default.
# - modern bs-callout new (v2-v3) alert style.
# - flat flat callout style with background, like on Mozilla or StackOverflow.
# - disabled disable all CSS styles import of note tag.
style: simple
icons: true
border_radius: 3
# Offset lighter of background in % for modern and flat styles (modern: -12 | 12; flat: -18 | 6).
# Offset also applied to label tag variables. This option can work with disabled note tag.
light_bg_offset: 0
#圖片懶加載
lazyload:
enable: true
script: https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js
+3
View File
@@ -6,7 +6,10 @@
each item in i.link_list each item in i.link_list
li.md-links-item li.md-links-item
a(href=item.link title=item.name target="_blank") a(href=item.link title=item.name target="_blank")
if theme.lazyload.enable
img.lozad(data-src=item.avatar onerror=`onerror=null;src='${theme.lodding_bg.flink}'` height="72px") img.lozad(data-src=item.avatar onerror=`onerror=null;src='${theme.lodding_bg.flink}'` height="72px")
else
img(src=item.avatar onerror=`onerror=null;src='${theme.lodding_bg.flink}'` height="72px")
div(class="md-links-title")= item.name div(class="md-links-title")= item.name
<br/> <br/>
div(class="md-links-des")=item.descr div(class="md-links-des")=item.descr
+6
View File
@@ -90,3 +90,9 @@ if theme.busuanzi.site_uv || theme.busuanzi.site_pv || theme.busuanzi.page_pv
if theme.instantpage.enable if theme.instantpage.enable
script(src="https://cdn.jsdelivr.net/npm/instant.page@1.2.2/instantpage.min.js" type="module") script(src="https://cdn.jsdelivr.net/npm/instant.page@1.2.2/instantpage.min.js" type="module")
if theme.lazyload.enable
script(src=url_for(theme.lazyload.script))
script.
const observer = lozad(); // lazy loads elements with default selector as '.lozad'
observer.observe();
Loaded 3 of 28 files, more files were not shown because too many files have changed in this diff. Show more