hexo-theme-shokax 0.3.12 → 0.3.14
Sign up to get free protection for your applications and to get access to all the features.
- package/CODE_OF_CONDUCT.md +128 -128
- package/CONTRIBUTING.md +58 -58
- package/LICENSE +660 -660
- package/LICENSE-shoka +21 -21
- package/README.md +99 -92
- package/README_en.MD +90 -82
- package/UsageRestrictions.md +25 -25
- package/_config.yml +370 -373
- package/_images.yml +9 -9
- package/languages/README.md +19 -19
- package/languages/default.yml +1 -1
- package/languages/en.yml +153 -153
- package/languages/ja.yml +153 -153
- package/languages/zh-CN.yml +153 -153
- package/languages/zh-HK.yml +153 -153
- package/languages/zh-TW.yml +153 -153
- package/layout/_alternate/atom.ejs +30 -30
- package/layout/_alternate/json.ejs +16 -16
- package/layout/_alternate/rss.ejs +34 -34
- package/layout/_mixin/breadcrumb.pug +33 -33
- package/layout/_mixin/card.pug +38 -38
- package/layout/_mixin/comment.pug +41 -41
- package/layout/_mixin/postmeta.pug +29 -29
- package/layout/_mixin/segment.pug +32 -32
- package/layout/_mixin/sidebar.pug +40 -40
- package/layout/_mixin/widgets.pug +33 -33
- package/layout/_partials/footer.pug +42 -42
- package/layout/_partials/head/head.pug +57 -58
- package/layout/_partials/head/head_com.pug +17 -17
- package/layout/_partials/head/pwa.pug +18 -18
- package/layout/_partials/header.pug +18 -18
- package/layout/_partials/layout.pug +139 -139
- package/layout/_partials/loading.pug +13 -13
- package/layout/_partials/pagination.pug +4 -4
- package/layout/_partials/post/copyright.pug +20 -20
- package/layout/_partials/post/footer.pug +25 -25
- package/layout/_partials/post/nav.pug +13 -13
- package/layout/_partials/post/post.pug +41 -41
- package/layout/_partials/post/reward.pug +18 -18
- package/layout/_partials/sidebar/menu.pug +37 -37
- package/layout/_partials/sidebar/overview.pug +42 -42
- package/layout/_partials/third-party/baidu-analytics.pug +11 -11
- package/layout/_partials/third-party/clarity.pug +8 -8
- package/layout/_partials/third-party/google-analytics.pug +9 -9
- package/layout/archive.pug +118 -118
- package/layout/category.pug +59 -59
- package/layout/index.pug +33 -33
- package/layout/page.pug +55 -55
- package/layout/post.pug +36 -36
- package/layout/tag.pug +43 -43
- package/package.json +47 -47
- package/source/assets/algolia_logo.svg +9 -9
- package/source/assets/logo.svg +16 -16
- package/source/css/_colors.styl +207 -207
- package/source/css/_common/components/components.styl +6 -6
- package/source/css/_common/components/highlight/highlight.styl +357 -357
- package/source/css/_common/components/highlight/operation.styl +21 -21
- package/source/css/_common/components/pages/collapse.styl +119 -119
- package/source/css/_common/components/pages/home.styl +391 -391
- package/source/css/_common/components/pages/pages.styl +56 -56
- package/source/css/_common/components/pages/tag-cloud.styl +12 -12
- package/source/css/_common/components/post/breadcrumb.styl +39 -39
- package/source/css/_common/components/post/copyright.styl +41 -41
- package/source/css/_common/components/post/expand.styl +263 -263
- package/source/css/_common/components/post/footer.styl +11 -11
- package/source/css/_common/components/post/header.styl +79 -79
- package/source/css/_common/components/post/nav.styl +63 -63
- package/source/css/_common/components/post/post.styl +29 -29
- package/source/css/_common/components/post/reward.styl +50 -50
- package/source/css/_common/components/post/rtl.styl +12 -12
- package/source/css/_common/components/post/tags.styl +39 -39
- package/source/css/_common/components/tags/collapse.styl +72 -72
- package/source/css/_common/components/tags/container.styl +49 -49
- package/source/css/_common/components/tags/label.styl +12 -12
- package/source/css/_common/components/tags/links.styl +77 -77
- package/source/css/_common/components/tags/list.styl +131 -131
- package/source/css/_common/components/tags/note.styl +70 -70
- package/source/css/_common/components/tags/player.styl +361 -361
- package/source/css/_common/components/tags/quiz.styl +200 -200
- package/source/css/_common/components/tags/tabs.styl +89 -87
- package/source/css/_common/components/tags/tags.styl +9 -9
- package/source/css/_common/components/third-party/loading.styl +222 -222
- package/source/css/_common/components/third-party/mermaid/class.styl +90 -90
- package/source/css/_common/components/third-party/mermaid/flowchart.styl +72 -72
- package/source/css/_common/components/third-party/mermaid/gantt.styl +251 -251
- package/source/css/_common/components/third-party/mermaid/git.styl +7 -7
- package/source/css/_common/components/third-party/mermaid/mermaid.styl +37 -37
- package/source/css/_common/components/third-party/mermaid/pie.styl +9 -9
- package/source/css/_common/components/third-party/mermaid/sequence.styl +95 -95
- package/source/css/_common/components/third-party/mermaid/state.styl +130 -130
- package/source/css/_common/components/third-party/pace.styl +18 -18
- package/source/css/_common/components/third-party/search.styl +167 -167
- package/source/css/_common/components/third-party/theme.styl +151 -151
- package/source/css/_common/components/third-party/third-party.styl +22 -22
- package/source/css/_common/components/third-party/widgets.styl +57 -57
- package/source/css/_common/outline/footer/footer.styl +69 -69
- package/source/css/_common/outline/header/brand.styl +77 -77
- package/source/css/_common/outline/header/header.styl +20 -20
- package/source/css/_common/outline/header/image.styl +85 -85
- package/source/css/_common/outline/header/menu.styl +117 -117
- package/source/css/_common/outline/header/nav.styl +81 -81
- package/source/css/_common/outline/header/right.styl +15 -15
- package/source/css/_common/outline/header/tool.styl +207 -207
- package/source/css/_common/outline/header/waves.styl +57 -57
- package/source/css/_common/outline/mobile.styl +46 -46
- package/source/css/_common/outline/outline.styl +78 -78
- package/source/css/_common/outline/sidebar/author.styl +59 -59
- package/source/css/_common/outline/sidebar/dimmer.styl +23 -23
- package/source/css/_common/outline/sidebar/menu.styl +63 -63
- package/source/css/_common/outline/sidebar/quick.styl +43 -43
- package/source/css/_common/outline/sidebar/related.styl +56 -56
- package/source/css/_common/outline/sidebar/sidebar.styl +75 -75
- package/source/css/_common/outline/sidebar/social.styl +69 -69
- package/source/css/_common/outline/sidebar/state.styl +37 -37
- package/source/css/_common/outline/sidebar/tab.styl +71 -71
- package/source/css/_common/outline/sidebar/toc.styl +47 -47
- package/source/css/_common/scaffolding/animate.styl +322 -322
- package/source/css/_common/scaffolding/base.styl +190 -190
- package/source/css/_common/scaffolding/buttons.styl +48 -48
- package/source/css/_common/scaffolding/divider.styl +36 -36
- package/source/css/_common/scaffolding/iconfont.styl +443 -443
- package/source/css/_common/scaffolding/normalize.styl +273 -273
- package/source/css/_common/scaffolding/pagination.styl +81 -81
- package/source/css/_common/scaffolding/ribbon.styl +38 -38
- package/source/css/_common/scaffolding/scaffolding.styl +14 -14
- package/source/css/_common/scaffolding/scrollbar.styl +37 -37
- package/source/css/_common/scaffolding/tables.styl +50 -50
- package/source/css/_common/scaffolding/tip.styl +19 -19
- package/source/css/_common/scaffolding/toggles.styl +59 -59
- package/source/css/_iconfont.styl +455 -451
- package/source/css/_mixins.styl +148 -148
- package/source/css/_variables.styl +89 -89
- package/source/css/app.styl +41 -41
- package/source/css/comment.styl +3 -3
- package/source/css/mermaid.styl +5 -5
- package/source/css/optimize.styl +5 -5
- package/scripts/filters/locals.js +0 -52
- package/scripts/filters/post.js +0 -5
- package/scripts/generaters/archive.js +0 -133
- package/scripts/generaters/config.js +0 -48
- package/scripts/generaters/images.js +0 -23
- package/scripts/generaters/index.js +0 -107
- package/scripts/generaters/pages.js +0 -15
- package/scripts/generaters/script.js +0 -115
- package/scripts/helpers/asset.js +0 -147
- package/scripts/helpers/engine.js +0 -153
- package/scripts/helpers/list_categories.js +0 -84
- package/scripts/helpers/summary_ai.js +0 -107
- package/scripts/helpers/symbols_count_time.js +0 -69
- package/scripts/plugin/check.js +0 -32
- package/scripts/plugin/index.js +0 -78
- package/scripts/plugin/lib/injects-point.js +0 -20
- package/scripts/plugin/lib/injects.js +0 -89
- package/scripts/tags/links.js +0 -44
- package/scripts/tags/media.js +0 -19
- package/scripts/utils.js +0 -14
- package/source/css/twikoo.css +0 -2002
- package/source/js/_app/components/sidebar.js +0 -210
- package/source/js/_app/fireworks.js +0 -10
- package/source/js/_app/globals/globalVars.js +0 -80
- package/source/js/_app/globals/handles.js +0 -138
- package/source/js/_app/globals/themeColor.js +0 -62
- package/source/js/_app/globals/thirdparty.js +0 -71
- package/source/js/_app/globals/tools.js +0 -92
- package/source/js/_app/library/anime.js +0 -109
- package/source/js/_app/library/dom.js +0 -34
- package/source/js/_app/library/loadFile.js +0 -36
- package/source/js/_app/library/proto.js +0 -163
- package/source/js/_app/library/scriptPjax.js +0 -70
- package/source/js/_app/library/storage.js +0 -12
- package/source/js/_app/library/vue.js +0 -53
- package/source/js/_app/page/comment.js +0 -23
- package/source/js/_app/page/common.js +0 -41
- package/source/js/_app/page/fancybox.js +0 -65
- package/source/js/_app/page/post.js +0 -244
- package/source/js/_app/page/search.js +0 -118
- package/source/js/_app/page/tab.js +0 -53
- package/source/js/_app/pjax/domInit.js +0 -76
- package/source/js/_app/pjax/refresh.js +0 -53
- package/source/js/_app/pjax/siteInit.js +0 -49
- package/source/js/_app/player.js +0 -774
package/languages/zh-TW.yml
CHANGED
@@ -1,153 +1,153 @@
|
|
1
|
-
---
|
2
|
-
name: 繁體中文
|
3
|
-
favicon:
|
4
|
-
show: (●´3`●)復活成功
|
5
|
-
hide: (´Д`)瀏覽器崩潰啦
|
6
|
-
|
7
|
-
title:
|
8
|
-
archive: 歸檔
|
9
|
-
category: 分類
|
10
|
-
tag: 標籤
|
11
|
-
all: 全部
|
12
|
-
not_found: Σ( ° △ °|||)︴404!何も見えない
|
13
|
-
category_in: 分類於"%s"的文章
|
14
|
-
tag_in: 包含標籤"%s"的文章
|
15
|
-
archive_in: 發表於"%s"的文章
|
16
|
-
|
17
|
-
menu:
|
18
|
-
home: 首頁
|
19
|
-
posts: 文章
|
20
|
-
archives: 歸檔
|
21
|
-
categories: 分類
|
22
|
-
tags: 標籤
|
23
|
-
about: 關於
|
24
|
-
search: 檢索
|
25
|
-
census: 博客訪問統計
|
26
|
-
aboutsite: 關於本站
|
27
|
-
updata: 更新日誌
|
28
|
-
statistics: 統計
|
29
|
-
admiration: 讚賞博主
|
30
|
-
friends: 友鏈
|
31
|
-
privacy: 隱私政策
|
32
|
-
|
33
|
-
sidebar:
|
34
|
-
overview: 本站概要
|
35
|
-
toc: 文章目錄
|
36
|
-
related: 系列文章
|
37
|
-
|
38
|
-
index:
|
39
|
-
sticky: 置頂文章
|
40
|
-
category: 精選分類
|
41
|
-
posts: 文章列表
|
42
|
-
random_posts: 隨機文章
|
43
|
-
recent_comments: 最新評論
|
44
|
-
|
45
|
-
post:
|
46
|
-
posted: 發表於
|
47
|
-
edited: 更新於
|
48
|
-
created: 創建時間
|
49
|
-
modified: 修改時間
|
50
|
-
edit: 編輯
|
51
|
-
in: 分類於
|
52
|
-
read_more: 閱讀全文
|
53
|
-
untitled: 未命名
|
54
|
-
sticky: 置頂
|
55
|
-
views: 閱讀次數
|
56
|
-
related_posts: 相關文章
|
57
|
-
next: 下一篇
|
58
|
-
prev: 上一篇
|
59
|
-
copyright:
|
60
|
-
author: 作者
|
61
|
-
link: 文章連結
|
62
|
-
license_title: 版權聲明
|
63
|
-
license_content: "本網誌所有文章除特別聲明外,均採用 %s 許可協議。轉載請註明出處!"
|
64
|
-
nocopy: "<span class=\"red\">本頁內容禁止轉載!</span>"
|
65
|
-
|
66
|
-
footer:
|
67
|
-
powered: "基於 %s"
|
68
|
-
total_views: 總瀏覽次數
|
69
|
-
total_visitors: 訪客總數
|
70
|
-
|
71
|
-
counter:
|
72
|
-
index:
|
73
|
-
post: "%d 篇文章"
|
74
|
-
category: "%d 個子項,"
|
75
|
-
tag_cloud:
|
76
|
-
zero: 沒有標籤
|
77
|
-
one: 目前共有 1 個標籤
|
78
|
-
other: "目前共有 %d 個標籤"
|
79
|
-
categories:
|
80
|
-
zero: 沒有分類
|
81
|
-
one: 目前共有 1 個分類
|
82
|
-
other: "目前共有 %d 個分類"
|
83
|
-
archive_posts:
|
84
|
-
zero: 沒有文章。
|
85
|
-
one: 目前共有 1 篇文章。
|
86
|
-
other: "目前共有 %d 篇文章。"
|
87
|
-
|
88
|
-
state:
|
89
|
-
posts: 文章
|
90
|
-
tags: 標籤
|
91
|
-
categories: 分類
|
92
|
-
|
93
|
-
search:
|
94
|
-
placeholder: 文章搜尋
|
95
|
-
empty: "關於 「 ${query} 」 ,什麼也沒搜到"
|
96
|
-
stats: "${time} ms 內找到 ${hits} 條結果"
|
97
|
-
|
98
|
-
cheers:
|
99
|
-
um: 嗯..
|
100
|
-
ok: 還行
|
101
|
-
nice: 好
|
102
|
-
good: 很好
|
103
|
-
great: 非常好
|
104
|
-
excellent: 太棒了
|
105
|
-
|
106
|
-
keep_on: 繼續努力。
|
107
|
-
|
108
|
-
symbol:
|
109
|
-
comma: ","
|
110
|
-
period: "。"
|
111
|
-
colon: ":"
|
112
|
-
year: 年
|
113
|
-
month: 月
|
114
|
-
|
115
|
-
reward:
|
116
|
-
donate: 捐贈
|
117
|
-
text: 請我喝[茶]~( ̄▽ ̄)~*
|
118
|
-
wechatpay: 微信支付
|
119
|
-
alipay: 支付寶
|
120
|
-
paypal: PayPal
|
121
|
-
bitcoin: 比特幣
|
122
|
-
|
123
|
-
follow_me:
|
124
|
-
welcome: 歡迎關注我的其它發布渠道
|
125
|
-
|
126
|
-
accessibility:
|
127
|
-
nav_toggle: 切換導航欄
|
128
|
-
prev_page: 上一頁
|
129
|
-
next_page: 下一頁
|
130
|
-
|
131
|
-
symbols_count_time:
|
132
|
-
count: 文章字數
|
133
|
-
count_total: 總字數
|
134
|
-
time: 所需閱讀時間
|
135
|
-
time_total: 所需總閱讀時間
|
136
|
-
time_minutes: 分鐘
|
137
|
-
word: 字
|
138
|
-
view: 次
|
139
|
-
|
140
|
-
tips:
|
141
|
-
copyright: "複製成功,轉載請遵守 %s 協議。"
|
142
|
-
nocopy: "複製失敗,本頁內容禁止轉載!"
|
143
|
-
|
144
|
-
quiz:
|
145
|
-
choice: 單選題
|
146
|
-
multiple: 多選題
|
147
|
-
true_false: 判斷題
|
148
|
-
essay: 問答題
|
149
|
-
gap_fill: 填空題
|
150
|
-
mistake: 錯題備註
|
151
|
-
|
152
|
-
outime:
|
153
|
-
template: "<div class=\"note warning\"><p><span class=\"label warning\">文章時效性提示</span><br>這是一篇發佈於 {{publish}} 天前,最後一次更新在 {{updated}} 天前的文章,部分信息可能已經發生改變,請注意甄別。</p></div>"
|
1
|
+
---
|
2
|
+
name: 繁體中文
|
3
|
+
favicon:
|
4
|
+
show: (●´3`●)復活成功
|
5
|
+
hide: (´Д`)瀏覽器崩潰啦
|
6
|
+
|
7
|
+
title:
|
8
|
+
archive: 歸檔
|
9
|
+
category: 分類
|
10
|
+
tag: 標籤
|
11
|
+
all: 全部
|
12
|
+
not_found: Σ( ° △ °|||)︴404!何も見えない
|
13
|
+
category_in: 分類於"%s"的文章
|
14
|
+
tag_in: 包含標籤"%s"的文章
|
15
|
+
archive_in: 發表於"%s"的文章
|
16
|
+
|
17
|
+
menu:
|
18
|
+
home: 首頁
|
19
|
+
posts: 文章
|
20
|
+
archives: 歸檔
|
21
|
+
categories: 分類
|
22
|
+
tags: 標籤
|
23
|
+
about: 關於
|
24
|
+
search: 檢索
|
25
|
+
census: 博客訪問統計
|
26
|
+
aboutsite: 關於本站
|
27
|
+
updata: 更新日誌
|
28
|
+
statistics: 統計
|
29
|
+
admiration: 讚賞博主
|
30
|
+
friends: 友鏈
|
31
|
+
privacy: 隱私政策
|
32
|
+
|
33
|
+
sidebar:
|
34
|
+
overview: 本站概要
|
35
|
+
toc: 文章目錄
|
36
|
+
related: 系列文章
|
37
|
+
|
38
|
+
index:
|
39
|
+
sticky: 置頂文章
|
40
|
+
category: 精選分類
|
41
|
+
posts: 文章列表
|
42
|
+
random_posts: 隨機文章
|
43
|
+
recent_comments: 最新評論
|
44
|
+
|
45
|
+
post:
|
46
|
+
posted: 發表於
|
47
|
+
edited: 更新於
|
48
|
+
created: 創建時間
|
49
|
+
modified: 修改時間
|
50
|
+
edit: 編輯
|
51
|
+
in: 分類於
|
52
|
+
read_more: 閱讀全文
|
53
|
+
untitled: 未命名
|
54
|
+
sticky: 置頂
|
55
|
+
views: 閱讀次數
|
56
|
+
related_posts: 相關文章
|
57
|
+
next: 下一篇
|
58
|
+
prev: 上一篇
|
59
|
+
copyright:
|
60
|
+
author: 作者
|
61
|
+
link: 文章連結
|
62
|
+
license_title: 版權聲明
|
63
|
+
license_content: "本網誌所有文章除特別聲明外,均採用 %s 許可協議。轉載請註明出處!"
|
64
|
+
nocopy: "<span class=\"red\">本頁內容禁止轉載!</span>"
|
65
|
+
|
66
|
+
footer:
|
67
|
+
powered: "基於 %s"
|
68
|
+
total_views: 總瀏覽次數
|
69
|
+
total_visitors: 訪客總數
|
70
|
+
|
71
|
+
counter:
|
72
|
+
index:
|
73
|
+
post: "%d 篇文章"
|
74
|
+
category: "%d 個子項,"
|
75
|
+
tag_cloud:
|
76
|
+
zero: 沒有標籤
|
77
|
+
one: 目前共有 1 個標籤
|
78
|
+
other: "目前共有 %d 個標籤"
|
79
|
+
categories:
|
80
|
+
zero: 沒有分類
|
81
|
+
one: 目前共有 1 個分類
|
82
|
+
other: "目前共有 %d 個分類"
|
83
|
+
archive_posts:
|
84
|
+
zero: 沒有文章。
|
85
|
+
one: 目前共有 1 篇文章。
|
86
|
+
other: "目前共有 %d 篇文章。"
|
87
|
+
|
88
|
+
state:
|
89
|
+
posts: 文章
|
90
|
+
tags: 標籤
|
91
|
+
categories: 分類
|
92
|
+
|
93
|
+
search:
|
94
|
+
placeholder: 文章搜尋
|
95
|
+
empty: "關於 「 ${query} 」 ,什麼也沒搜到"
|
96
|
+
stats: "${time} ms 內找到 ${hits} 條結果"
|
97
|
+
|
98
|
+
cheers:
|
99
|
+
um: 嗯..
|
100
|
+
ok: 還行
|
101
|
+
nice: 好
|
102
|
+
good: 很好
|
103
|
+
great: 非常好
|
104
|
+
excellent: 太棒了
|
105
|
+
|
106
|
+
keep_on: 繼續努力。
|
107
|
+
|
108
|
+
symbol:
|
109
|
+
comma: ","
|
110
|
+
period: "。"
|
111
|
+
colon: ":"
|
112
|
+
year: 年
|
113
|
+
month: 月
|
114
|
+
|
115
|
+
reward:
|
116
|
+
donate: 捐贈
|
117
|
+
text: 請我喝[茶]~( ̄▽ ̄)~*
|
118
|
+
wechatpay: 微信支付
|
119
|
+
alipay: 支付寶
|
120
|
+
paypal: PayPal
|
121
|
+
bitcoin: 比特幣
|
122
|
+
|
123
|
+
follow_me:
|
124
|
+
welcome: 歡迎關注我的其它發布渠道
|
125
|
+
|
126
|
+
accessibility:
|
127
|
+
nav_toggle: 切換導航欄
|
128
|
+
prev_page: 上一頁
|
129
|
+
next_page: 下一頁
|
130
|
+
|
131
|
+
symbols_count_time:
|
132
|
+
count: 文章字數
|
133
|
+
count_total: 總字數
|
134
|
+
time: 所需閱讀時間
|
135
|
+
time_total: 所需總閱讀時間
|
136
|
+
time_minutes: 分鐘
|
137
|
+
word: 字
|
138
|
+
view: 次
|
139
|
+
|
140
|
+
tips:
|
141
|
+
copyright: "複製成功,轉載請遵守 %s 協議。"
|
142
|
+
nocopy: "複製失敗,本頁內容禁止轉載!"
|
143
|
+
|
144
|
+
quiz:
|
145
|
+
choice: 單選題
|
146
|
+
multiple: 多選題
|
147
|
+
true_false: 判斷題
|
148
|
+
essay: 問答題
|
149
|
+
gap_fill: 填空題
|
150
|
+
mistake: 錯題備註
|
151
|
+
|
152
|
+
outime:
|
153
|
+
template: "<div class=\"note warning\"><p><span class=\"label warning\">文章時效性提示</span><br>這是一篇發佈於 {{publish}} 天前,最後一次更新在 {{updated}} 天前的文章,部分信息可能已經發生改變,請注意甄別。</p></div>"
|
@@ -1,30 +1,30 @@
|
|
1
|
-
<?xml version="1.0"?>
|
2
|
-
<feed xmlns="http://www.w3.org/2005/Atom">
|
3
|
-
<id><%= config.url %></id>
|
4
|
-
<title><%= config.title %></title>
|
5
|
-
<subtitle><%= config.subtitle %></subtitle>
|
6
|
-
<icon><%= full_url_for('/assets/favicon.ico') %></icon>
|
7
|
-
<link href="<%= config.url %>" />
|
8
|
-
<author>
|
9
|
-
<name><%= config.author %></name>
|
10
|
-
</author>
|
11
|
-
<updated><%= moment(lastBuildDate).toISOString() %></updated>
|
12
|
-
<%_ for (item of (config.keywords ? config.keywords.split(',') : [])) { _%>
|
13
|
-
<category term="<%= item %>" />
|
14
|
-
<%_ } _%>
|
15
|
-
<%_ for (const post of posts) { _%>
|
16
|
-
<entry>
|
17
|
-
<id><%= post.permalink %></id>
|
18
|
-
<title><%= post.title %></title>
|
19
|
-
<link rel="alternate" href="<%= post.permalink %>"/>
|
20
|
-
<content type="html"><%= post.content %></content>
|
21
|
-
<%_ for (const { name, path } of (post.categories ? post.categories.toArray() : [])) { _%>
|
22
|
-
<category term="<%= name %>" scheme="<%= full_url_for(path) %>" />
|
23
|
-
<%_ } _%>
|
24
|
-
<%_ for (const { name, path } of (post.tags ? post.tags.toArray() : [])) { _%>
|
25
|
-
<category term="<%= name %>" scheme="<%= full_url_for(path) %>" />
|
26
|
-
<%_ } _%>
|
27
|
-
<updated><%= moment(post.date).toISOString() %></updated>
|
28
|
-
</entry>
|
29
|
-
<%_ } _%>
|
30
|
-
</feed>
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<feed xmlns="http://www.w3.org/2005/Atom">
|
3
|
+
<id><%= config.url %></id>
|
4
|
+
<title><%= config.title %></title>
|
5
|
+
<subtitle><%= config.subtitle %></subtitle>
|
6
|
+
<icon><%= full_url_for('/assets/favicon.ico') %></icon>
|
7
|
+
<link href="<%= config.url %>" />
|
8
|
+
<author>
|
9
|
+
<name><%= config.author %></name>
|
10
|
+
</author>
|
11
|
+
<updated><%= moment(lastBuildDate).toISOString() %></updated>
|
12
|
+
<%_ for (item of (config.keywords ? config.keywords.split(',') : [])) { _%>
|
13
|
+
<category term="<%= item %>" />
|
14
|
+
<%_ } _%>
|
15
|
+
<%_ for (const post of posts) { _%>
|
16
|
+
<entry>
|
17
|
+
<id><%= post.permalink %></id>
|
18
|
+
<title><%= post.title %></title>
|
19
|
+
<link rel="alternate" href="<%= post.permalink %>"/>
|
20
|
+
<content type="html"><%= post.content %></content>
|
21
|
+
<%_ for (const { name, path } of (post.categories ? post.categories.toArray() : [])) { _%>
|
22
|
+
<category term="<%= name %>" scheme="<%= full_url_for(path) %>" />
|
23
|
+
<%_ } _%>
|
24
|
+
<%_ for (const { name, path } of (post.tags ? post.tags.toArray() : [])) { _%>
|
25
|
+
<category term="<%= name %>" scheme="<%= full_url_for(path) %>" />
|
26
|
+
<%_ } _%>
|
27
|
+
<updated><%= moment(post.date).toISOString() %></updated>
|
28
|
+
</entry>
|
29
|
+
<%_ } _%>
|
30
|
+
</feed>
|
@@ -1,16 +1,16 @@
|
|
1
|
-
<%- JSON.stringify({
|
2
|
-
version: 'https://jsonfeed.org/version/1',
|
3
|
-
title: config.title,
|
4
|
-
subtitle: config.subtitle,
|
5
|
-
icon: full_url_for('/assets/favicon.ico'),
|
6
|
-
description: config.description,
|
7
|
-
home_page_url: config.url,
|
8
|
-
items: posts.map(post => ({
|
9
|
-
id: post.permalink,
|
10
|
-
url: post.permalink,
|
11
|
-
title: post.title,
|
12
|
-
date_published: moment(post.date).toISOString(),
|
13
|
-
content_html: post.content || '',
|
14
|
-
tags: [...(post.categories ? post.categories.toArray() : []).map(({ name }) => name), ...(post.tags ? post.tags.toArray() : []).map(({ name }) => name)]
|
15
|
-
}))
|
16
|
-
}, null, 4) _%>
|
1
|
+
<%- JSON.stringify({
|
2
|
+
version: 'https://jsonfeed.org/version/1',
|
3
|
+
title: config.title,
|
4
|
+
subtitle: config.subtitle,
|
5
|
+
icon: full_url_for('/assets/favicon.ico'),
|
6
|
+
description: config.description,
|
7
|
+
home_page_url: config.url,
|
8
|
+
items: posts.map(post => ({
|
9
|
+
id: post.permalink,
|
10
|
+
url: post.permalink,
|
11
|
+
title: post.title,
|
12
|
+
date_published: moment(post.date).toISOString(),
|
13
|
+
content_html: post.content || '',
|
14
|
+
tags: [...(post.categories ? post.categories.toArray() : []).map(({ name }) => name), ...(post.tags ? post.tags.toArray() : []).map(({ name }) => name)]
|
15
|
+
}))
|
16
|
+
}, null, 4) _%>
|
@@ -1,34 +1,34 @@
|
|
1
|
-
<?xml version="1.0"?>
|
2
|
-
<rss version="2.0">
|
3
|
-
<channel>
|
4
|
-
<title><%= config.title %></title>
|
5
|
-
<subtitle><%= config.subtitle %></subtitle>
|
6
|
-
<icon><%= full_url_for('/assets/favicon.ico') %></icon>
|
7
|
-
<link><%= config.url %></link>
|
8
|
-
<author>
|
9
|
-
<name><%= config.author %></name>
|
10
|
-
</author>
|
11
|
-
<description><%= config.description %></description>
|
12
|
-
<language><%= config.language %></language>
|
13
|
-
<pubDate><%= moment(lastBuildDate).locale('en').format('ddd, DD MMM YYYY HH:mm:ss ZZ') %></pubDate>
|
14
|
-
<lastBuildDate><%= moment(lastBuildDate).locale('en').format('ddd, DD MMM YYYY HH:mm:ss ZZ') %></lastBuildDate>
|
15
|
-
<%_ for (item of (config.keywords ? config.keywords.split(',') : [])) { _%>
|
16
|
-
<category term="<%= item %>" />
|
17
|
-
<%_ } _%>
|
18
|
-
<%_ for (const post of posts) { _%>
|
19
|
-
<item>
|
20
|
-
<guid isPermalink="true"><%= post.permalink %></guid>
|
21
|
-
<title><%= post.title %></title>
|
22
|
-
<link><%= post.permalink %></link>
|
23
|
-
<%_ for (const { name, path } of (post.categories ? post.categories.toArray() : [])) { _%>
|
24
|
-
<category term="<%= name %>" scheme="<%= full_url_for(path) %>" />
|
25
|
-
<%_ } _%>
|
26
|
-
<%_ for (const { name, path } of (post.tags ? post.tags.toArray() : [])) { _%>
|
27
|
-
<category term="<%= name %>" scheme="<%= full_url_for(path) %>" />
|
28
|
-
<%_ } _%>
|
29
|
-
<pubDate><%= moment(post.date).locale('en').format('ddd, DD MMM YYYY HH:mm:ss ZZ') %></pubDate>
|
30
|
-
<description><![CDATA[ <%= post.content %> ]]></description>
|
31
|
-
</item>
|
32
|
-
<%_ } _%>
|
33
|
-
</channel>
|
34
|
-
</rss>
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<rss version="2.0">
|
3
|
+
<channel>
|
4
|
+
<title><%= config.title %></title>
|
5
|
+
<subtitle><%= config.subtitle %></subtitle>
|
6
|
+
<icon><%= full_url_for('/assets/favicon.ico') %></icon>
|
7
|
+
<link><%= config.url %></link>
|
8
|
+
<author>
|
9
|
+
<name><%= config.author %></name>
|
10
|
+
</author>
|
11
|
+
<description><%= config.description %></description>
|
12
|
+
<language><%= config.language %></language>
|
13
|
+
<pubDate><%= moment(lastBuildDate).locale('en').format('ddd, DD MMM YYYY HH:mm:ss ZZ') %></pubDate>
|
14
|
+
<lastBuildDate><%= moment(lastBuildDate).locale('en').format('ddd, DD MMM YYYY HH:mm:ss ZZ') %></lastBuildDate>
|
15
|
+
<%_ for (item of (config.keywords ? config.keywords.split(',') : [])) { _%>
|
16
|
+
<category term="<%= item %>" />
|
17
|
+
<%_ } _%>
|
18
|
+
<%_ for (const post of posts) { _%>
|
19
|
+
<item>
|
20
|
+
<guid isPermalink="true"><%= post.permalink %></guid>
|
21
|
+
<title><%= post.title %></title>
|
22
|
+
<link><%= post.permalink %></link>
|
23
|
+
<%_ for (const { name, path } of (post.categories ? post.categories.toArray() : [])) { _%>
|
24
|
+
<category term="<%= name %>" scheme="<%= full_url_for(path) %>" />
|
25
|
+
<%_ } _%>
|
26
|
+
<%_ for (const { name, path } of (post.tags ? post.tags.toArray() : [])) { _%>
|
27
|
+
<category term="<%= name %>" scheme="<%= full_url_for(path) %>" />
|
28
|
+
<%_ } _%>
|
29
|
+
<pubDate><%= moment(post.date).locale('en').format('ddd, DD MMM YYYY HH:mm:ss ZZ') %></pubDate>
|
30
|
+
<description><![CDATA[ <%= post.content %> ]]></description>
|
31
|
+
</item>
|
32
|
+
<%_ } _%>
|
33
|
+
</channel>
|
34
|
+
</rss>
|
@@ -1,33 +1,33 @@
|
|
1
|
-
mixin BCRender(post, home)
|
2
|
-
if home
|
3
|
-
!= '<div class="breadcrumb" itemListElement itemscope itemtype="https://schema.org/BreadcrumbList">'
|
4
|
-
i(class="ic i-home")
|
5
|
-
span
|
6
|
-
a(href=url_for(site.path))
|
7
|
-
!= __('menu.home')
|
8
|
-
else
|
9
|
-
!= '<div class="breadcrumb">'
|
10
|
-
if post.categories && post.categories.length
|
11
|
-
- var cat_length = post.categories.length
|
12
|
-
if home
|
13
|
-
i(class="ic i-angle-right")
|
14
|
-
each cat,index in post.categories.toArray()
|
15
|
-
if home
|
16
|
-
if index===cat_length-1
|
17
|
-
span(class="current" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem")
|
18
|
-
a(href=url_for(cat.path) itemprop="item" rel="index" title=__('post.in')+ cat.name)
|
19
|
-
span(itemprop="name")
|
20
|
-
!= cat.name
|
21
|
-
meta(itemprop="position" content=index)
|
22
|
-
else
|
23
|
-
span(itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem")
|
24
|
-
a(href=url_for(cat.path) itemprop="item" rel="index" title=__('post.in') + cat.name)
|
25
|
-
span(itemprop="name")
|
26
|
-
!= cat.name
|
27
|
-
meta(itemprop="position" content=index)
|
28
|
-
else
|
29
|
-
a(href=url_for(cat.path) title=__('post.in')+cat.name)
|
30
|
-
!= cat.name
|
31
|
-
if cat_length > 1 && index !== cat_length - 1
|
32
|
-
i(class="ic i-angle-right")
|
33
|
-
!= '</div>'
|
1
|
+
mixin BCRender(post, home)
|
2
|
+
if home
|
3
|
+
!= '<div class="breadcrumb" itemListElement itemscope itemtype="https://schema.org/BreadcrumbList">'
|
4
|
+
i(class="ic i-home")
|
5
|
+
span
|
6
|
+
a(href=url_for(site.path))
|
7
|
+
!= __('menu.home')
|
8
|
+
else
|
9
|
+
!= '<div class="breadcrumb">'
|
10
|
+
if post.categories && post.categories.length
|
11
|
+
- var cat_length = post.categories.length
|
12
|
+
if home
|
13
|
+
i(class="ic i-angle-right")
|
14
|
+
each cat,index in post.categories.toArray()
|
15
|
+
if home
|
16
|
+
if index===cat_length-1
|
17
|
+
span(class="current" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem")
|
18
|
+
a(href=url_for(cat.path) itemprop="item" rel="index" title=__('post.in')+ cat.name)
|
19
|
+
span(itemprop="name")
|
20
|
+
!= cat.name
|
21
|
+
meta(itemprop="position" content=index)
|
22
|
+
else
|
23
|
+
span(itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem")
|
24
|
+
a(href=url_for(cat.path) itemprop="item" rel="index" title=__('post.in') + cat.name)
|
25
|
+
span(itemprop="name")
|
26
|
+
!= cat.name
|
27
|
+
meta(itemprop="position" content=index)
|
28
|
+
else
|
29
|
+
a(href=url_for(cat.path) title=__('post.in')+cat.name)
|
30
|
+
!= cat.name
|
31
|
+
if cat_length > 1 && index !== cat_length - 1
|
32
|
+
i(class="ic i-angle-right")
|
33
|
+
!= '</div>'
|
package/layout/_mixin/card.pug
CHANGED
@@ -1,38 +1,38 @@
|
|
1
|
-
mixin CardRender(item)
|
2
|
-
- cover = url_for(theme.statics + item.slug + '/cover.jpg')
|
3
|
-
- itemname = item.name
|
4
|
-
|
5
|
-
section(class="item")
|
6
|
-
div(class="cover" data-background-image!=cover ? cover:"")
|
7
|
-
h2(class="title")
|
8
|
-
!= itemname
|
9
|
-
- var temp = item?.top?.name
|
10
|
-
if temp
|
11
|
-
span
|
12
|
-
!= item.top.name
|
13
|
-
div(class="info")
|
14
|
-
if item.link
|
15
|
-
- var postTitleIcon = '<i class="ic i-link-alt"></i>'
|
16
|
-
- var postText = itemname || item.link || item.path || __('post.untitled')
|
17
|
-
div(class="ribbon")
|
18
|
-
- var tempL = item.link || item.path
|
19
|
-
!= _url(tempL , postText + (postTitleIcon || ''), {itemprop: 'url', title: postText})
|
20
|
-
div(class="inner")
|
21
|
-
- var len = ''
|
22
|
-
if item.child
|
23
|
-
- len = _p('counter.index.category', item.child)
|
24
|
-
- len = len + _p('counter.index.post', item.length)
|
25
|
-
ul(class="posts")
|
26
|
-
each sub in item.subs
|
27
|
-
- var subname = sub.name || sub.title
|
28
|
-
li
|
29
|
-
a(title=subname href=url_for(sub.path))
|
30
|
-
= subname
|
31
|
-
div(class="meta footer")
|
32
|
-
if item.top
|
33
|
-
span
|
34
|
-
!= _url(item.top.path, '<i class="ic i-flag"></i>'+item.top.name, {itemprop: 'url', title: item.top.name})
|
35
|
-
span
|
36
|
-
i(class="ic i-file")
|
37
|
-
!= len
|
38
|
-
!= _url(item.path, 'more...', {itemprop: 'url', title: itemname, class: 'btn'})
|
1
|
+
mixin CardRender(item)
|
2
|
+
- cover = url_for(theme.statics + item.slug + '/cover.jpg')
|
3
|
+
- itemname = item.name
|
4
|
+
|
5
|
+
section(class="item")
|
6
|
+
div(class="cover" data-background-image!=cover ? cover:"")
|
7
|
+
h2(class="title")
|
8
|
+
!= itemname
|
9
|
+
- var temp = item?.top?.name
|
10
|
+
if temp
|
11
|
+
span
|
12
|
+
!= item.top.name
|
13
|
+
div(class="info")
|
14
|
+
if item.link
|
15
|
+
- var postTitleIcon = '<i class="ic i-link-alt"></i>'
|
16
|
+
- var postText = itemname || item.link || item.path || __('post.untitled')
|
17
|
+
div(class="ribbon")
|
18
|
+
- var tempL = item.link || item.path
|
19
|
+
!= _url(tempL , postText + (postTitleIcon || ''), {itemprop: 'url', title: postText})
|
20
|
+
div(class="inner")
|
21
|
+
- var len = ''
|
22
|
+
if item.child
|
23
|
+
- len = _p('counter.index.category', item.child)
|
24
|
+
- len = len + _p('counter.index.post', item.length)
|
25
|
+
ul(class="posts")
|
26
|
+
each sub in item.subs
|
27
|
+
- var subname = sub.name || sub.title
|
28
|
+
li
|
29
|
+
a(title=subname href=url_for(sub.path))
|
30
|
+
= subname
|
31
|
+
div(class="meta footer")
|
32
|
+
if item.top
|
33
|
+
span
|
34
|
+
!= _url(item.top.path, '<i class="ic i-flag"></i>'+item.top.name, {itemprop: 'url', title: item.top.name})
|
35
|
+
span
|
36
|
+
i(class="ic i-file")
|
37
|
+
!= len
|
38
|
+
!= _url(item.path, 'more...', {itemprop: 'url', title: itemname, class: 'btn'})
|