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
+33
View File
@@ -0,0 +1,33 @@
hexo.extend.generator.register('404', function (locals) {
if(!this.theme.config.page.error)return
return {
path: '404.html',
layout: ['404'],
data: {
type: '404',
comment: false
}
}
})
hexo.extend.generator.register('tags', function(locals) {
if(!this.theme.config.page.tags)return
return {
path: 'tags/index.html',
layout: ['page'],
data: {
type: 'tags',
comment: false
}
};
});
hexo.extend.generator.register('categories', function(locals) {
if(!this.theme.config.page.categories)return
return {
path: 'categories/index.html',
layout: ['page'],
data: {
type: 'categories',
comment: false
}
};
});