mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
fix: 退回之前的inject實現,解決上一個版本導致無法插入inject的bugs close #390
This commit is contained in:
1 parent
8014ddb65e
commit
666637ce99
5 files changed
+14
-24
No files matched your search
@@ -55,10 +55,12 @@ div
|
|||||||
else if (!is_post() && page.aside !== false)
|
else if (!is_post() && page.aside !== false)
|
||||||
!=partial('includes/third-party/newest-comments/index', {}, {cache:theme.fragment_cache})
|
!=partial('includes/third-party/newest-comments/index', {}, {cache:theme.fragment_cache})
|
||||||
|
|
||||||
|
!=fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
|
||||||
|
|
||||||
!=partial('includes/third-party/effect', {}, {cache:theme.fragment_cache})
|
!=partial('includes/third-party/effect', {}, {cache:theme.fragment_cache})
|
||||||
|
|
||||||
!=partial('includes/third-party/chat/index', {}, {cache:theme.fragment_cache})
|
!=partial('includes/third-party/chat/index', {}, {cache:theme.fragment_cache})
|
||||||
|
|
||||||
if theme.aplayerInject && theme.aplayerInject.enable
|
if theme.aplayerInject && theme.aplayerInject.enable
|
||||||
if theme.pjax.enable || theme.aplayerInject.per_page
|
if theme.pjax.enable || theme.aplayerInject.per_page
|
||||||
include ./head/aplayer.pug
|
include ./head/aplayer.pug
|
||||||
|
|||||||
@@ -81,3 +81,4 @@ include ./head/noscript.pug
|
|||||||
|
|
||||||
!=partial('includes/head/darkmode', {}, {cache:theme.fragment_cache})
|
!=partial('includes/head/darkmode', {}, {cache:theme.fragment_cache})
|
||||||
|
|
||||||
|
!=fragment_cache('injectHead', function(){return injectHtml(theme.inject.head)})
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hexo-theme-butterfly",
|
"name": "hexo-theme-butterfly",
|
||||||
"version": "3.3.0-b3",
|
"version": "3.3.0-b4",
|
||||||
"description": "A Simple and Card UI Design theme for Hexo",
|
"description": "A Simple and Card UI Design theme for Hexo",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loaded 3 of 5 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user