forked from jerryc127/hexo-theme-butterfly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
79 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
each value, label in theme.menu | ||
if !Array.isArray(value) | ||
.menus_item | ||
a.site-page(href=url_for(trim(value.split('||')[0]))) | ||
i.fa-fw(class=trim(value.split('||')[1])) | ||
span=' '+label | ||
else | ||
.menus_item | ||
a.site-page | ||
i.fa-fw(class=trim(label.split('||')[1]) aria-hidden="true") | ||
span=' '+ trim(label.split('||')[0]) | ||
i.fa.fa-chevron-down.menus-expand(aria-hidden="true") | ||
ul.menus_item_child | ||
each i in value | ||
li | ||
a.site-page(href=url_for(trim(i.split('||')[1]))) | ||
i.fa-fw(class=trim(i.split('||')[2])) | ||
span=' '+trim(i.split('||')[0]) | ||
.menus_items | ||
each value, label in theme.menu | ||
if !Array.isArray(value) | ||
.menus_item | ||
a.site-page(href=url_for(trim(value.split('||')[0]))) | ||
i.fa-fw(class=trim(value.split('||')[1])) | ||
span=' '+label | ||
else | ||
.menus_item | ||
a.site-page | ||
i.fa-fw(class=trim(label.split('||')[1]) aria-hidden="true") | ||
span=' '+ trim(label.split('||')[0]) | ||
i.fa.fa-chevron-down.menus-expand(aria-hidden="true") | ||
ul.menus_item_child | ||
each i in value | ||
li | ||
a.site-page(href=url_for(trim(i.split('||')[1]))) | ||
i.fa-fw(class=trim(i.split('||')[2])) | ||
span=' '+trim(i.split('||')[0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters