Files
website/themes/solitude/layout/includes/layout.pug
T
2024-07-05 21:01:19 +08:00

54 lines
1.3 KiB
Plaintext

- page.type = is_home() ? 'solitude' : page.type
doctype html
html(lang=config.language, data-theme="light")
head
include ./head.pug
body#body(data-type=page.type)
// universe
if theme.display_mode.universe
canvas#universe
// loading
if theme.loading.fullpage
include ./loading.pug
// console
include ./console.pug
// sidebar
include ./sidebar.pug
// keyboard
if theme.keyboard.enable
include ./keyboard.pug
#body-wrap(class = is_post() ? 'post' : 'page')
include ./header.pug
if(page.type !== '404')
block content
footer#footer
include ./footer.pug
else
.error#body-wrap
block content
// right_menu
if theme.right_menu.enable
include rightmenu
// inject body
include ./inject/body.pug
// search
include ./widgets/third-party/search/index.pug
// Tianli-Talk
if theme.tianli_talk.enable
include ./widgets/third-party/tianli-talk.pug
// music
if theme.capsule.enable
include ./widgets/third-party/music.pug