🏷️ 2.3.0發佈

This commit is contained in:
Jerry committed 2020-04-26 23:37:37 +08:00
commit e2cb0242bb
79 files changed
+1642 -744

No files matched your search

+14 -1
View File
@@ -1,3 +1,7 @@
script(src=url_for(theme.CDN.jquery))
script(src=url_for(theme.CDN.utils))
script(src=url_for(theme.CDN.main))
if theme.translate && theme.translate.enable
script(src=url_for(theme.CDN.translate))
@@ -62,4 +66,13 @@ if theme.mermaid.enable
include ./math/mermaid.pug
if is_home()
include ./head/subtitle.pug
<<<<<<< HEAD
include ./head/subtitle.pug
=======
include ./head/subtitle.pug
!=fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
if theme.preloader
!=partial('includes/loading/loading-js', {}, {cache:theme.fragment_cache})
>>>>>>> dev
@@ -0,0 +1,12 @@
#fb-root
script(async defer crossorigin="anonymous" src=`https://connect.facebook.net/${theme.facebook_comments.lang}/sdk.js#xfbml=1&version=v6.0`)
.fb-comments(data-colorscheme = theme.display_mode === 'dark' ? 'dark' : 'light'
data-href=urlNoIndex()
data-numposts= theme.facebook_comments.pageSize || 10
data-order-by= theme.facebook_comments.order_by || 'social'
data-width="100%")
if theme.darkmode.enable
script.
var themeNow = document.documentElement.getAttribute('data-theme') === 'dark' ? 'dark' : 'light'
document.getElementsByClassName('fb-comments')[0].setAttribute('data-colorscheme',themeNow)
+5 -2
View File
@@ -4,7 +4,8 @@
- var gt = theme.gitalk && theme.gitalk.enable
- var v = theme.valine && theme.valine.enable
- var u = theme.utterances && theme.utterances.enable
- var isComment = d || dj || l || gt || v || u
- var fb = theme.facebook_comments && theme.facebook_comments.enable
- var isComment = d || dj || l || gt || v || u || fb
if isComment
hr
@@ -23,4 +24,6 @@ if isComment
else if v
include ./valine.pug
else if u
include ./utterances.pug
include ./utterances.pug
else if fb
include ./facebook_comments.pug
Loaded 3 of 79 files, more files were not shown because too many files have changed in this diff. Show more