mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-08-08 19:48:42 +08:00
fix: exclude fancybox links from pjax and refactor series logic
- Add :not([data-fancybox]) to pjaxExclude to prevent fancybox links from being loaded via pjax - Refactor series grouping to use a shared hexo._seriesGroups object built once - Improve performance by avoiding repeated post iteration in both tag and helper - Version bump to 5.6.1
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
- var pjaxExclude = 'a:not([target="_blank"])'
|
||||
- var pjaxExclude = 'a:not([target="_blank"]):not([data-fancybox])'
|
||||
if theme.pjax.exclude
|
||||
each val in theme.pjax.exclude
|
||||
- pjaxExclude += `:not([href="${val}"])`
|
||||
|
||||
Reference in New Issue
Block a user