Add solitude

This commit is contained in:
IF-chan
2024-07-05 21:01:19 +08:00
parent 26d71c4fbc
commit 71758b9fce
289 changed files with 23277 additions and 0 deletions
@@ -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()})