🏷️ 更新至3.0.0-RC-1 close #189, close #192, close #223, close #224, close #229, close 232, close #240

This commit is contained in:
Jerry committed 2020-06-16 18:37:22 +08:00
1 parent 0ad2c01fc9
commit aa8c509b96
93 files changed
+2109 -1648

No files matched your search

+14 -8
View File
@@ -11,14 +11,20 @@ html(lang=config.language data-theme=theme.display_mode)
if theme.fireworks && theme.fireworks.enable
canvas.fireworks
if theme.background
- var is_photo = theme.background.startsWith('url') ? 'photo':'color'
#web_bg(data-type=is_photo)
include includes/mobile-sidebar/index.pug
nav#nav.error-no-found(style=bg_img)
include includes/header/header.pug
#error_info.is-center
h1#error_title= '404'
#error_subtitle= theme.error_404.subtitle
include includes/rightside.pug
#error-wrap
.error-content
.error-img(style=bg_img)
.error-info
h1.error_title= '404'
.error_subtitle= theme.error_404.subtitle
a.button--animated(href=url_for(config.root))
i.fas.fa-rocket
= _p('error404.back_button')
!=partial('includes/search/index', {}, {cache:theme.fragment_cache})
include includes/additional-js.pug
+14 -12
View File
@@ -2,18 +2,20 @@
.flink#article-container
if site.data.link
each i in site.data.link
h2= i.class_name
.post-cards
.md-links
each item in i.link_list
.md-links-item
a(href=url_for(item.link) title=item.name target="_blank")
if theme.lazyload
img(data-src=url_for(item.avatar) onerror=`this.onerror=null;this.src='` + url_for(theme.lodding_bg.flink) + `'` alt=item.name )
else
img(src=url_for(item.avatar) onerror=`this.onerror=null;this.src='` + url_for(theme.lodding_bg.flink) + `'` alt=item.name )
.md-links-title= item.name
.md-links-des= item.descr
if i.class_name
h2!= i.class_name
if i.class_desc
.flink-desc!=i.class_desc
.flink-list
each item in i.link_list
.flink-list-item
a(href=url_for(item.link) title=item.name target="_blank")
if theme.lazyload.enable
img(data-src=url_for(item.avatar) onerror=`this.onerror=null;this.src='` + url_for(theme.error_img.flink) + `'` alt=item.name )
else
img(src=url_for(item.avatar) onerror=`this.onerror=null;this.src='` + url_for(theme.error_img.flink) + `'` alt=item.name )
.flink-item-name= item.name
.flink-item-desc= item.descr
!= page.content
if page.comments !== false
include includes/comments/index.pug
+10 -8
View File
@@ -5,10 +5,10 @@ script(src=url_for(theme.CDN.main))
if theme.translate && theme.translate.enable
script(src=url_for(theme.CDN.translate))
if (theme.medium_zoom && theme.medium_zoom.enable)
if theme.medium_zoom
script(src=url_for(theme.CDN.medium_zoom))
if (theme.fancybox && theme.fancybox.enable)
if theme.fancybox
script(src=url_for(theme.CDN.fancybox))
include ./math/index.pug
@@ -39,14 +39,14 @@ if theme.activate_power_mode.enable
if theme.busuanzi.site_uv || theme.busuanzi.site_pv || theme.busuanzi.page_pv
script(async src=url_for(theme.CDN.busuanzi))
if theme.instantpage.enable
script(src=url_for(theme.CDN.instantpage) type="module")
if theme.instantpage
script(src=url_for(theme.CDN.instantpage) type="module" defer)
if theme.lazyload
script(src=url_for(theme.CDN.lazyload))
if theme.lazyload.enable
script(src=url_for(theme.CDN.lazyload) async)
//- 鼠標特效
if theme.click_heart && theme.click_heart.enable
if theme.click_heart
script(src=url_for(theme.CDN.click_heart))
if theme.ClickShowText && theme.ClickShowText.enable
@@ -71,4 +71,6 @@ if is_home()
!=fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
if theme.preloader
!=partial('includes/loading/loading-js', {}, {cache:theme.fragment_cache})
!=partial('includes/loading/loading-js', {}, {cache:theme.fragment_cache})
!=partial('includes/chat/index', {}, {cache:theme.fragment_cache})
Loaded 3 of 93 files, more files were not shown because too many files have changed in this diff. Show more