hexo-theme-clarity 1.4.0 → 1.5.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 CHANGED
@@ -1,6 +1,7 @@
1
1
  # Clarity
2
2
 
3
- [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/guozhenyi/hexo-theme-clarity/blob/main/LICENSE)
3
+ [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/guozhenyi/hexo-theme-clarity/blob/main/LICENSE) [![npm version](https://img.shields.io/npm/v/hexo-theme-clarity.svg)](https://www.npmjs.com/package/hexo-theme-clarity)
4
+
4
5
 
5
6
  [预览](https://www.guozhenyi.com)|[English Document](./README-en.md)
6
7
 
package/_config.yml CHANGED
@@ -147,6 +147,7 @@ site_bg_img:
147
147
  # Post page settings
148
148
  post_meta:
149
149
  open_graph: true ## Whether to enable Open Graph.
150
+ post_date: created ## The date of the post, options: created/updated
150
151
 
151
152
  menu:
152
153
  - page: home
package/layout/post.pug CHANGED
@@ -8,8 +8,12 @@ block content
8
8
  h1.post-title= page.title
9
9
  .post-meta
10
10
  i.fa.fa-calendar.mr-4
11
- span.post-meta-label= '发表于'
12
- time.post-meta-published= page.date.format(config.date_format)
11
+ if theme.post_meta.post_date == 'updated'
12
+ span.post-meta-label= '更新于'
13
+ time.post-meta-modified= page.updated.format(config.date_format)
14
+ else
15
+ span.post-meta-label= '发表于'
16
+ time.post-meta-published= page.date.format(config.date_format)
13
17
  if page.categories.length > 0
14
18
  span.post-meta-separator= '|'
15
19
  span.category
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "hexo-theme-clarity",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
+ "license": "MIT",
4
5
  "description": "Hexo Theme Clarity",
5
6
  "repository": "guozhenyi/hexo-theme-clarity",
6
7
  "keywords": [
@@ -11,6 +12,5 @@
11
12
  "peerDependencies": {
12
13
  "hexo-renderer-pug": "^3.0.0",
13
14
  "hexo-renderer-sass-next": "^0.1.3"
14
- },
15
- "license": "MIT"
15
+ }
16
16
  }
@@ -1,4 +0,0 @@
1
- .widget
2
- .widget-title= '小小的广告'
3
- if env.env === 'production'
4
- div.support(style='height:120px;border: 1px solid red;')= '生产环境'
File without changes
File without changes