mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-08-08 19:48:42 +08:00
* chore: bump theme version to 5.5.5 and update third-party plugins
* fix: recognize 404 in page type helper * style: adjust pagination items margin * feat: use ResizeObserver to update header positions for dynamic article heights
This commit is contained in:
@@ -171,7 +171,7 @@ hexo.extend.helper.register('getPageType', (page, isHome) => {
|
||||
if (category) return 'category'
|
||||
if (archive) return 'archive'
|
||||
if (type) {
|
||||
if (type === 'tags' || type === 'categories') return type
|
||||
if (type === 'tags' || type === 'categories' || type === '404') return type
|
||||
else return 'page'
|
||||
}
|
||||
if (isHome) return 'home'
|
||||
|
||||
Reference in New Issue
Block a user