mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 19:40:55 +08:00
fix: 修復當hexo的_config沒有設置description時,會導致pjax在頁面與文章間切換會無效 close #381 improvement: 當隱藏部分沒配置時,左下角設置按鈕會消失 #353 improvement: 網站背景可配置 (顏色(HEX值/RGB值/顔色單詞/漸變色)/漸變色/圖片鏈接) improvement: 夜間模式下,背景顔色/top-img/footer-bg 設置為顔色時,不再強制顯示黑色,而是改為遮罩降低亮度
30 lines
886 B
Plaintext
30 lines
886 B
Plaintext
- var top_img = theme.error_404.background || theme.default_top_img
|
|
- var bg_img = `background-image: url(${url_for(top_img)})`
|
|
|
|
doctype html
|
|
html(lang=config.language data-theme=theme.display_mode)
|
|
head
|
|
include includes/head.pug
|
|
body
|
|
if theme.preloader
|
|
!=partial('includes/loading/loading', {}, {cache:theme.fragment_cache})
|
|
|
|
if theme.fireworks && theme.fireworks.enable
|
|
canvas.fireworks
|
|
|
|
if theme.background
|
|
#web_bg
|
|
|
|
#error-wrap
|
|
.error-content
|
|
.error-img(style=bg_img)
|
|
.error-info
|
|
h1.error_title= '404'
|
|
.error_subtitle= theme.error_404.subtitle
|
|
a.button--animated(href=config.root)
|
|
i.fas.fa-rocket
|
|
= _p('error404.back_button')
|
|
|
|
!=partial('includes/third-party/search/index', {}, {cache:theme.fragment_cache})
|
|
include includes/additional-js.pug
|