hexo-theme-solitude 1.10.5 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/_config.yml +16 -0
- package/languages/default.yml +3 -0
- package/languages/en.yml +3 -0
- package/languages/zh-CN.yml +3 -0
- package/languages/zh-TW.yml +3 -0
- package/layout/includes/console.pug +5 -1
- package/layout/includes/inject/head.pug +1 -1
- package/layout/includes/page/recentcomment.pug +16 -0
- package/layout/includes/widgets/home/hometop.pug +0 -1
- package/layout/includes/widgets/home/topGroup.pug +9 -8
- package/layout/includes/widgets/page/banner.pug +2 -2
- package/layout/includes/widgets/page/message/artalk.pug +45 -0
- package/layout/includes/widgets/page/message/js.pug +5 -1
- package/layout/includes/widgets/page/message/twikoo.pug +19 -16
- package/layout/includes/widgets/page/message/valine.pug +12 -3
- package/layout/includes/widgets/page/message/waline.pug +42 -0
- package/layout/includes/widgets/page/recentcomment/artalk.pug +78 -0
- package/layout/includes/widgets/page/recentcomment/twikoo.pug +83 -0
- package/layout/includes/widgets/page/recentcomment/valine.pug +79 -0
- package/layout/includes/widgets/page/recentcomment/waline.pug +72 -0
- package/layout/includes/widgets/third-party/comments/artalk.pug +1 -1
- package/layout/includes/widgets/third-party/news-comment/artalk.pug +1 -1
- package/layout/includes/widgets/third-party/news-comment/twikoo.pug +1 -1
- package/layout/includes/widgets/third-party/news-comment/valine.pug +19 -17
- package/layout/includes/widgets/third-party/news-comment/waline.pug +2 -2
- package/layout/page.pug +2 -0
- package/package.json +1 -1
- package/plugins.yml +3 -3
- package/scripts/event/merge_config.js +7 -0
- package/source/css/_comments/comment.styl +1 -1
- package/source/css/_comments/valine.styl +1 -0
- package/source/css/_global/index.styl +27 -23
- package/source/css/_layout/article-container.styl +1 -1
- package/source/css/_layout/aside.styl +1 -0
- package/source/css/_layout/console.styl +13 -0
- package/source/css/_layout/footer.styl +1 -1
- package/source/css/_layout/header.styl +0 -27
- package/source/css/_layout/rightmenu.styl +1 -1
- package/source/css/_page/_about/about.styl +2 -1
- package/source/css/_page/_about/buff.styl +1 -1
- package/source/css/_page/_about/contentinfo.styl +2 -2
- package/source/css/_page/_about/maxim.styl +1 -1
- package/source/css/_page/_about/myphoto.styl +1 -1
- package/source/css/_page/_about/oneself.styl +2 -2
- package/source/css/_page/_about/personalities.styl +1 -1
- package/source/css/_page/_about/skills.styl +1 -1
- package/source/css/_page/_about/statistic.styl +1 -1
- package/source/css/_page/_home/home-top.styl +17 -96
- package/source/css/_page/_home/home.styl +1 -1
- package/source/css/_page/index.styl +3 -0
- package/source/css/_page/links.styl +0 -3
- package/source/css/_page/other.styl +127 -115
- package/source/css/_page/recentcomment.styl +85 -0
- package/source/css/_page/says.styl +5 -14
- package/source/css/_tags/gallery.styl +5 -3
- package/source/js/main.js +2 -22
- package/source/js/search/algolia.js +11 -0
- package/source/js/search/local.js +11 -0
- package/layout/includes/widgets/home/categoryGroup.pug +0 -12
@@ -30,6 +30,17 @@ window.addEventListener("load", () => {
|
|
30
30
|
}
|
31
31
|
};
|
32
32
|
|
33
|
+
const addEventCtrlK = () => {
|
34
|
+
document.addEventListener("keydown", function (event) {
|
35
|
+
if (event.ctrlKey && event.key === "k") {
|
36
|
+
event.preventDefault();
|
37
|
+
openSearch();
|
38
|
+
}
|
39
|
+
});
|
40
|
+
}
|
41
|
+
|
42
|
+
addEventCtrlK()
|
43
|
+
|
33
44
|
const searchClickFn = () => {
|
34
45
|
utils.addEventListenerPjax(document.querySelector("#search-button > .search"), "click", openSearch);
|
35
46
|
|
@@ -37,6 +37,17 @@ window.addEventListener("load", () => {
|
|
37
37
|
|
38
38
|
addEventTagList()
|
39
39
|
|
40
|
+
const addEventCtrlK = () => {
|
41
|
+
document.addEventListener("keydown", function (event) {
|
42
|
+
if (event.ctrlKey && event.key === "k") {
|
43
|
+
event.preventDefault();
|
44
|
+
openSearch();
|
45
|
+
}
|
46
|
+
});
|
47
|
+
}
|
48
|
+
|
49
|
+
addEventCtrlK()
|
50
|
+
|
40
51
|
const searchFnOnce = () => {
|
41
52
|
$searchMask.addEventListener("click", closeSearch);
|
42
53
|
utils.addEventListenerPjax(document.querySelector("#local-search .search-close-button"), "click", closeSearch);
|
@@ -1,12 +0,0 @@
|
|
1
|
-
- gg = theme.hometop.group
|
2
|
-
- group = gg ? (Object.entries(gg)).slice(0, 2) : null
|
3
|
-
|
4
|
-
if group
|
5
|
-
.categoryGroup
|
6
|
-
each item in group
|
7
|
-
- var array = item[1].split('||')
|
8
|
-
.categoryItem
|
9
|
-
a.categoryButton(href=url_for(trim(array[0])) style="background-image:" + array[2] + ";")
|
10
|
-
span.categoryButtonText= item[0]
|
11
|
-
if array[1]
|
12
|
-
i.solitude(class=trim(array[1]))
|