mirror of
https://github.com/KivotosRailway/website.git
synced 2026-11-03 19:07:56 +09:00
Add solitude
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
each item in theme.verify_site || []
|
||||
meta(name=item.name, content=item.content)
|
||||
|
||||
link(rel="canonical" href=urlNoIndex())
|
||||
link(rel="stylesheet", href=url_for(theme.cdn.solitude_css))
|
||||
|
||||
// aplayer
|
||||
if theme.capsule.enable || theme.music.enable
|
||||
link(rel="stylesheet", href=url_for(theme.cdn.aplayer_css))
|
||||
|
||||
// swiper
|
||||
if (theme.says.home_mini && theme.says.enable) || theme.carousel
|
||||
link(rel="stylesheet", href=url_for(theme.cdn.swiper_css))
|
||||
|
||||
// fancybox ui
|
||||
if theme.lightbox && theme.fancybox
|
||||
link(rel="stylesheet", href=url_for(theme.cdn.fancyapps_css))
|
||||
|
||||
// katex
|
||||
if theme.katex && theme.katex.enable
|
||||
link(rel="stylesheet", href=url_for(theme.cdn.katex))
|
||||
|
||||
// Open Graph
|
||||
include ../head/opengraph.pug
|
||||
|
||||
// pwa
|
||||
include ../head/pwa.pug
|
||||
|
||||
script.
|
||||
console.log(
|
||||
"%c Program: Hexo %c Theme: Solitude %c Version: v1.12.2",
|
||||
"border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
|
||||
"padding: 5px 10px;color:white;background:#3e9f50;",
|
||||
"padding: 5px 10px;color:white;background:#0084ff;border-radius:0 5px 5px 0",
|
||||
)
|
||||
|
||||
if theme.memorial.enable
|
||||
script.
|
||||
let mdate = "!{theme.memorial.date}";
|
||||
mdate = (mdate.split(","));
|
||||
let ndate = new Date();
|
||||
for (let i of mdate) {
|
||||
if (i === (ndate.getMonth()+1) + "-" + (ndate.getDate())) {
|
||||
document.documentElement.classList.add('memorial');
|
||||
}
|
||||
}
|
||||
|
||||
if theme.extends.head
|
||||
each item in theme.extends.head
|
||||
!= item
|
||||
|
||||
!=fragment_cache('injectHeadJs', function(){return inject_head_js()})
|
||||
Reference in New Issue
Block a user