hexo-theme-shokax 0.5.0 → 0.5.2

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.
Files changed (165) hide show
  1. package/CODE_OF_CONDUCT.md +128 -128
  2. package/LICENSE +660 -660
  3. package/LICENSE-shoka +21 -21
  4. package/README.md +74 -53
  5. package/UsageRestrictions.md +25 -25
  6. package/_config.yml +352 -350
  7. package/languages/README.md +19 -19
  8. package/languages/default.yml +1 -1
  9. package/languages/en.yml +155 -155
  10. package/languages/ja.yml +155 -155
  11. package/languages/zh-CN.yml +155 -155
  12. package/languages/zh-HK.yml +155 -155
  13. package/languages/zh-TW.yml +155 -155
  14. package/layout/_alternate/atom.ejs +30 -30
  15. package/layout/_alternate/json.ejs +16 -16
  16. package/layout/_alternate/rss.ejs +34 -34
  17. package/layout/_mixin/breadcrumb.pug +33 -33
  18. package/layout/_mixin/card.pug +37 -37
  19. package/layout/_mixin/comment.pug +6 -6
  20. package/layout/_mixin/postmeta.pug +29 -29
  21. package/layout/_mixin/segment.pug +35 -35
  22. package/layout/_mixin/sidebar.pug +40 -40
  23. package/layout/_mixin/widgets.pug +28 -28
  24. package/layout/_partials/footer.pug +43 -43
  25. package/layout/_partials/head/head.pug +50 -50
  26. package/layout/_partials/head/head_com.pug +24 -24
  27. package/layout/_partials/head/pwa.pug +18 -18
  28. package/layout/_partials/header.pug +18 -18
  29. package/layout/_partials/layout.pug +137 -137
  30. package/layout/_partials/loading.pug +13 -13
  31. package/layout/_partials/pagination.pug +4 -4
  32. package/layout/_partials/post/copyright.pug +20 -20
  33. package/layout/_partials/post/footer.pug +20 -20
  34. package/layout/_partials/post/nav.pug +17 -17
  35. package/layout/_partials/post/post.pug +42 -42
  36. package/layout/_partials/post/reward.pug +18 -18
  37. package/layout/_partials/sidebar/menu.pug +37 -37
  38. package/layout/_partials/sidebar/overview.pug +42 -42
  39. package/layout/_partials/third-party/baidu-analytics.pug +11 -11
  40. package/layout/_partials/third-party/clarity.pug +8 -8
  41. package/layout/_partials/third-party/google-analytics.pug +9 -9
  42. package/layout/archive.pug +121 -121
  43. package/layout/category.pug +62 -62
  44. package/layout/index.pug +36 -36
  45. package/layout/page.pug +60 -60
  46. package/layout/post.pug +42 -42
  47. package/layout/tag.pug +46 -46
  48. package/package.json +14 -14
  49. package/scripts/generaters/images.js +11 -13
  50. package/scripts/generaters/script.js +3 -1
  51. package/scripts/helpers/engine.js +5 -0
  52. package/scripts/plugin/check.js +48 -10
  53. package/scripts/plugin/index.js +2 -2
  54. package/source/assets/algolia_logo.svg +9 -9
  55. package/source/assets/logo.svg +16 -16
  56. package/source/css/_colors.styl +207 -207
  57. package/source/css/_common/components/components.styl +5 -6
  58. package/source/css/_common/components/pages/collapse.styl +119 -119
  59. package/source/css/_common/components/pages/home.styl +391 -391
  60. package/source/css/_common/components/pages/pages.styl +56 -56
  61. package/source/css/_common/components/pages/tag-cloud.styl +12 -12
  62. package/source/css/_common/components/post/breadcrumb.styl +39 -39
  63. package/source/css/_common/components/post/copyright.styl +41 -41
  64. package/source/css/_common/components/post/expand.styl +263 -263
  65. package/source/css/_common/components/post/footer.styl +11 -11
  66. package/source/css/_common/components/post/header.styl +79 -79
  67. package/source/css/_common/components/post/nav.styl +64 -64
  68. package/source/css/_common/components/post/post.styl +29 -29
  69. package/source/css/_common/components/post/reward.styl +50 -50
  70. package/source/css/_common/components/post/rtl.styl +12 -12
  71. package/source/css/_common/components/post/tags.styl +39 -39
  72. package/source/css/_common/components/tags/collapse.styl +72 -72
  73. package/source/css/_common/components/tags/container.styl +49 -49
  74. package/source/css/_common/components/tags/label.styl +12 -12
  75. package/source/css/_common/components/tags/links.styl +77 -77
  76. package/source/css/_common/components/tags/list.styl +131 -131
  77. package/source/css/_common/components/tags/note.styl +70 -70
  78. package/source/css/_common/components/tags/player.styl +361 -361
  79. package/source/css/_common/components/tags/quiz.styl +200 -200
  80. package/source/css/_common/components/tags/tabs.styl +89 -89
  81. package/source/css/_common/components/tags/tags.styl +9 -9
  82. package/source/css/_common/components/third-party/loading.styl +222 -222
  83. package/source/css/_common/components/third-party/mermaid/class.styl +90 -90
  84. package/source/css/_common/components/third-party/mermaid/flowchart.styl +72 -72
  85. package/source/css/_common/components/third-party/mermaid/gantt.styl +251 -251
  86. package/source/css/_common/components/third-party/mermaid/git.styl +7 -7
  87. package/source/css/_common/components/third-party/mermaid/mermaid.styl +37 -37
  88. package/source/css/_common/components/third-party/mermaid/pie.styl +9 -9
  89. package/source/css/_common/components/third-party/mermaid/sequence.styl +95 -95
  90. package/source/css/_common/components/third-party/mermaid/state.styl +130 -130
  91. package/source/css/_common/components/third-party/pace.styl +18 -18
  92. package/source/css/_common/components/third-party/search.styl +167 -167
  93. package/source/css/_common/components/third-party/theme.styl +151 -151
  94. package/source/css/_common/components/third-party/third-party.styl +22 -22
  95. package/source/css/_common/components/third-party/widgets.styl +57 -57
  96. package/source/css/_common/outline/footer/footer.styl +67 -67
  97. package/source/css/_common/outline/header/brand.styl +77 -77
  98. package/source/css/_common/outline/header/header.styl +20 -20
  99. package/source/css/_common/outline/header/image.styl +85 -85
  100. package/source/css/_common/outline/header/menu.styl +117 -117
  101. package/source/css/_common/outline/header/nav.styl +81 -81
  102. package/source/css/_common/outline/header/right.styl +15 -15
  103. package/source/css/_common/outline/header/tool.styl +207 -207
  104. package/source/css/_common/outline/header/waves.styl +57 -57
  105. package/source/css/_common/outline/mobile.styl +46 -46
  106. package/source/css/_common/outline/outline.styl +78 -78
  107. package/source/css/_common/outline/sidebar/author.styl +59 -59
  108. package/source/css/_common/outline/sidebar/dimmer.styl +23 -23
  109. package/source/css/_common/outline/sidebar/menu.styl +63 -63
  110. package/source/css/_common/outline/sidebar/quick.styl +43 -43
  111. package/source/css/_common/outline/sidebar/related.styl +56 -56
  112. package/source/css/_common/outline/sidebar/sidebar.styl +82 -82
  113. package/source/css/_common/outline/sidebar/social.styl +69 -69
  114. package/source/css/_common/outline/sidebar/state.styl +37 -37
  115. package/source/css/_common/outline/sidebar/tab.styl +71 -71
  116. package/source/css/_common/outline/sidebar/toc.styl +47 -47
  117. package/source/css/_common/scaffolding/animate.styl +322 -322
  118. package/source/css/_common/scaffolding/base.styl +192 -190
  119. package/source/css/_common/scaffolding/buttons.styl +48 -48
  120. package/source/css/_common/scaffolding/divider.styl +36 -36
  121. package/source/css/_common/scaffolding/iconfont.styl +443 -443
  122. package/source/css/_common/scaffolding/normalize.styl +273 -273
  123. package/source/css/_common/scaffolding/pagination.styl +81 -81
  124. package/source/css/_common/scaffolding/ribbon.styl +38 -38
  125. package/source/css/_common/scaffolding/scaffolding.styl +14 -14
  126. package/source/css/_common/scaffolding/scrollbar.styl +37 -37
  127. package/source/css/_common/scaffolding/tables.styl +50 -50
  128. package/source/css/_common/scaffolding/tip.styl +19 -19
  129. package/source/css/_common/scaffolding/toggles.styl +59 -59
  130. package/source/css/_iconfont.styl +455 -455
  131. package/source/css/_mixins.styl +148 -148
  132. package/source/css/_variables.styl +89 -89
  133. package/source/css/app.styl +25 -25
  134. package/source/css/mermaid.styl +5 -5
  135. package/source/css/page.styl +2 -2
  136. package/source/css/post.styl +6 -5
  137. package/source/css/scaffolding.styl +4 -4
  138. package/source/js/_app/components/cloudflare.ts +18 -18
  139. package/source/js/_app/components/comments.ts +88 -86
  140. package/source/js/_app/components/sidebar.ts +243 -243
  141. package/source/js/_app/components/tcomments.ts +53 -53
  142. package/source/js/_app/globals/globalVars.ts +84 -84
  143. package/source/js/_app/globals/handles.ts +124 -124
  144. package/source/js/_app/globals/themeColor.ts +62 -62
  145. package/source/js/_app/globals/thirdparty.ts +63 -63
  146. package/source/js/_app/globals/tools.ts +73 -73
  147. package/source/js/_app/library/anime.ts +121 -121
  148. package/source/js/_app/library/declare.d.ts +128 -126
  149. package/source/js/_app/library/proto.ts +70 -70
  150. package/source/js/_app/library/vue.ts +49 -49
  151. package/source/js/_app/page/common.ts +41 -41
  152. package/source/js/_app/page/imageviewer.ts +15 -15
  153. package/source/js/_app/page/post.ts +252 -248
  154. package/source/js/_app/page/search.ts +109 -109
  155. package/source/js/_app/page/tab.ts +59 -59
  156. package/source/js/_app/pjax/domInit.ts +102 -102
  157. package/source/js/_app/pjax/refresh.ts +117 -117
  158. package/source/js/_app/pjax/siteInit.ts +90 -90
  159. package/source/js/_app/player.ts +13 -13
  160. package/toolbox/compiler.mjs +49 -53
  161. package/toolbox/dev-version.mjs +14 -14
  162. package/toolbox/hoistdep.mjs +5 -5
  163. package/toolbox/lib.mjs +63 -63
  164. package/source/css/_common/components/highlight/highlight.styl +0 -357
  165. package/source/css/_common/components/highlight/operation.styl +0 -21
@@ -1,155 +1,155 @@
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
- loading: "載入中..."
71
-
72
- counter:
73
- index:
74
- post: "%d 篇文章"
75
- category: "%d 個子項,"
76
- tag_cloud:
77
- zero: 沒有標籤
78
- one: 目前共有 1 個標籤
79
- other: "目前共有 %d 個標籤"
80
- categories:
81
- zero: 沒有分類
82
- one: 目前共有 1 個分類
83
- other: "目前共有 %d 個分類"
84
- archive_posts:
85
- zero: 沒有文章。
86
- one: 目前共有 1 篇文章。
87
- other: "目前共有 %d 篇文章。"
88
-
89
- state:
90
- posts: 文章
91
- tags: 標籤
92
- categories: 分類
93
-
94
- search:
95
- placeholder: 文章搜尋
96
- empty: "關於 「 ${query} 」 ,什麼也沒搜到"
97
- stats: "${time} ms 內找到 ${hits} 條結果"
98
-
99
- cheers:
100
- um: 嗯..
101
- ok: 還行
102
- nice: 好
103
- good: 很好
104
- great: 非常好
105
- excellent: 太棒了
106
-
107
- keep_on: 繼續努力。
108
-
109
- symbol:
110
- comma: ","
111
- period: "。"
112
- colon: ":"
113
- space: " "
114
- year: 年
115
- month: 月
116
-
117
- reward:
118
- donate: 捐贈
119
- text: 請我喝[茶]~( ̄▽ ̄)~*
120
- wechatpay: 微信支付
121
- alipay: 支付寶
122
- paypal: PayPal
123
- bitcoin: 比特幣
124
-
125
- follow_me:
126
- welcome: 歡迎關注我的其它發布渠道
127
-
128
- accessibility:
129
- nav_toggle: 切換導航欄
130
- prev_page: 上一頁
131
- next_page: 下一頁
132
-
133
- symbols_count_time:
134
- count: 文章字數
135
- count_total: 總字數
136
- time: 所需閱讀時間
137
- time_total: 所需總閱讀時間
138
- time_minutes: 分鐘
139
- word: 字
140
- view: 次
141
-
142
- tips:
143
- copyright: "複製成功,轉載請遵守 %s 協議。"
144
- nocopy: "複製失敗,本頁內容禁止轉載!"
145
-
146
- quiz:
147
- choice: 單選題
148
- multiple: 多選題
149
- true_false: 判斷題
150
- essay: 問答題
151
- gap_fill: 填空題
152
- mistake: 錯題備註
153
-
154
- outime:
155
- 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
+ loading: "載入中..."
71
+
72
+ counter:
73
+ index:
74
+ post: "%d 篇文章"
75
+ category: "%d 個子項,"
76
+ tag_cloud:
77
+ zero: 沒有標籤
78
+ one: 目前共有 1 個標籤
79
+ other: "目前共有 %d 個標籤"
80
+ categories:
81
+ zero: 沒有分類
82
+ one: 目前共有 1 個分類
83
+ other: "目前共有 %d 個分類"
84
+ archive_posts:
85
+ zero: 沒有文章。
86
+ one: 目前共有 1 篇文章。
87
+ other: "目前共有 %d 篇文章。"
88
+
89
+ state:
90
+ posts: 文章
91
+ tags: 標籤
92
+ categories: 分類
93
+
94
+ search:
95
+ placeholder: 文章搜尋
96
+ empty: "關於 「 ${query} 」 ,什麼也沒搜到"
97
+ stats: "${time} ms 內找到 ${hits} 條結果"
98
+
99
+ cheers:
100
+ um: 嗯..
101
+ ok: 還行
102
+ nice: 好
103
+ good: 很好
104
+ great: 非常好
105
+ excellent: 太棒了
106
+
107
+ keep_on: 繼續努力。
108
+
109
+ symbol:
110
+ comma: ","
111
+ period: "。"
112
+ colon: ":"
113
+ space: " "
114
+ year: 年
115
+ month: 月
116
+
117
+ reward:
118
+ donate: 捐贈
119
+ text: 請我喝[茶]~( ̄▽ ̄)~*
120
+ wechatpay: 微信支付
121
+ alipay: 支付寶
122
+ paypal: PayPal
123
+ bitcoin: 比特幣
124
+
125
+ follow_me:
126
+ welcome: 歡迎關注我的其它發布渠道
127
+
128
+ accessibility:
129
+ nav_toggle: 切換導航欄
130
+ prev_page: 上一頁
131
+ next_page: 下一頁
132
+
133
+ symbols_count_time:
134
+ count: 文章字數
135
+ count_total: 總字數
136
+ time: 所需閱讀時間
137
+ time_total: 所需總閱讀時間
138
+ time_minutes: 分鐘
139
+ word: 字
140
+ view: 次
141
+
142
+ tips:
143
+ copyright: "複製成功,轉載請遵守 %s 協議。"
144
+ nocopy: "複製失敗,本頁內容禁止轉載!"
145
+
146
+ quiz:
147
+ choice: 單選題
148
+ multiple: 多選題
149
+ true_false: 判斷題
150
+ essay: 問答題
151
+ gap_fill: 填空題
152
+ mistake: 錯題備註
153
+
154
+ outime:
155
+ 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>'
@@ -1,37 +1,37 @@
1
- mixin CardRender(item)
2
- - itemname = item.name
3
-
4
- section(class="item")
5
- div(class="cover" data-background-image=`${theme.statics}${item.slug}/cover.${getCoverExt(item.slug)}`)
6
- h2(class="title")
7
- != itemname
8
- - var temp = item?.top?.name
9
- if temp
10
- span
11
- != item.top.name
12
- div(class="info")
13
- if item.link
14
- - var postTitleIcon = '<i class="ic i-link-alt"></i>'
15
- - var postText = itemname || item.link || item.path || __('post.untitled')
16
- div(class="ribbon")
17
- - var tempL = item.link || item.path
18
- != _url(tempL , postText + (postTitleIcon || ''), {itemprop: 'url', title: postText})
19
- div(class="inner")
20
- - var len = ''
21
- if item.child
22
- - len = _p('counter.index.category', item.child)
23
- - len = len + _p('counter.index.post', item.length)
24
- ul(class="posts")
25
- each sub in item.subs
26
- - var subname = sub.name || sub.title
27
- li
28
- a(title=subname href=url_for(sub.path))
29
- = subname
30
- div(class="meta footer")
31
- if item.top
32
- span
33
- != _url(item.top.path, '<i class="ic i-flag"></i>'+item.top.name, {itemprop: 'url', title: item.top.name})
34
- span
35
- i(class="ic i-file")
36
- != len
37
- != _url(item.path, 'more...', {itemprop: 'url', title: itemname, class: 'btn'})
1
+ mixin CardRender(item)
2
+ - itemname = item.name
3
+
4
+ section(class="item")
5
+ div(class="cover" data-background-image=`${theme.statics}${item.slug}/cover.${getCoverExt(item.slug)}`)
6
+ h2(class="title")
7
+ != itemname
8
+ - var temp = item?.top?.name
9
+ if temp
10
+ span
11
+ != item.top.name
12
+ div(class="info")
13
+ if item.link
14
+ - var postTitleIcon = '<i class="ic i-link-alt"></i>'
15
+ - var postText = itemname || item.link || item.path || __('post.untitled')
16
+ div(class="ribbon")
17
+ - var tempL = item.link || item.path
18
+ != _url(tempL , postText + (postTitleIcon || ''), {itemprop: 'url', title: postText})
19
+ div(class="inner")
20
+ - var len = ''
21
+ if item.child
22
+ - len = _p('counter.index.category', item.child)
23
+ - len = len + _p('counter.index.post', item.length)
24
+ ul(class="posts")
25
+ each sub in item.subs
26
+ - var subname = sub.name || sub.title
27
+ li
28
+ a(title=subname href=url_for(sub.path))
29
+ = subname
30
+ div(class="meta footer")
31
+ if item.top
32
+ span
33
+ != _url(item.top.path, '<i class="ic i-flag"></i>'+item.top.name, {itemprop: 'url', title: item.top.name})
34
+ span
35
+ i(class="ic i-file")
36
+ != len
37
+ != _url(item.path, 'more...', {itemprop: 'url', title: itemname, class: 'btn'})
@@ -1,6 +1,6 @@
1
- mixin CommentRender()
2
- != shokax_inject('comment')
3
- if page.comment !== false
4
- div(class="wrap" id="comments")
5
-
6
-
1
+ mixin CommentRender()
2
+ != shokax_inject('comment')
3
+ if page.comment !== false
4
+ div(class="wrap" id="comments")
5
+
6
+