mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-12 14:07:06 +08:00
fix: 修復valine背景圖片再次出現時,由左到右移動的bugs improvement: 調大sidebar的寬度 improvement: html結構調整,mobile-sidebar改為sidebar/search調整 remove: 刪除多餘的css和pug
29 lines
801 B
Plaintext
29 lines
801 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')
|
|
|
|
include includes/additional-js.pug
|