mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 14:22:01 +08:00
Merge branch 'dev' into master
This commit is contained in:
commit
d73960f2a2
6 files changed
+26
-13
No files matched your search
@@ -88,6 +88,7 @@
|
|||||||
script.
|
script.
|
||||||
var GLOBAL_CONFIG = {
|
var GLOBAL_CONFIG = {
|
||||||
root: '!{config.root}',
|
root: '!{config.root}',
|
||||||
|
hexoversion: '!{get_hexo_version()}',
|
||||||
algolia: !{algolia},
|
algolia: !{algolia},
|
||||||
localSearch: !{localSearch},
|
localSearch: !{localSearch},
|
||||||
translate: !{translate},
|
translate: !{translate},
|
||||||
|
|||||||
Vendored
+16
-10
@@ -1,16 +1,22 @@
|
|||||||
script(src=url_for(theme.CDN.pjax))
|
script(src=url_for(theme.CDN.pjax))
|
||||||
script.
|
script.
|
||||||
var pjax = new Pjax({
|
let pjaxSelectors = [
|
||||||
|
'title',
|
||||||
|
'meta[name=description]',
|
||||||
|
'#config_change',
|
||||||
|
'#body-wrap',
|
||||||
|
'#rightside-config-hide',
|
||||||
|
'#rightside-config-show',
|
||||||
|
'.js-pjax'
|
||||||
|
]
|
||||||
|
|
||||||
|
if (!{theme.Open_Graph_meta && theme.comments.use && theme.comments.use.includes('Livere')}) {
|
||||||
|
pjaxSelectors.unshift('meta[property="og:image"]', 'meta[property="og:title"]', 'meta[property="og:url"]')
|
||||||
|
}
|
||||||
|
|
||||||
|
const pjax = new Pjax({
|
||||||
elements: 'a:not([target="_blank"])',
|
elements: 'a:not([target="_blank"])',
|
||||||
selectors: [
|
selectors: pjaxSelectors,
|
||||||
'title',
|
|
||||||
'meta[name=description]',
|
|
||||||
'#config_change',
|
|
||||||
'#body-wrap',
|
|
||||||
'#rightside-config-hide',
|
|
||||||
'#rightside-config-show',
|
|
||||||
'.js-pjax'
|
|
||||||
],
|
|
||||||
cacheBust: false,
|
cacheBust: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hexo-theme-butterfly",
|
"name": "hexo-theme-butterfly",
|
||||||
"version": "3.0.0",
|
"version": "3.0.1",
|
||||||
"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 6 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user