commit
5367284355
10
README.md
10
README.md
|
@ -1,8 +1,8 @@
|
|||
<div align="right">
|
||||
Language:
|
||||
English
|
||||
<a title="Chinese" href="docs/README_zh-CN.md">简中</a>
|
||||
<a title="Chinese" href="docs/README_zh-TW.md">繁中</a>
|
||||
English |
|
||||
<a title="Chinese" href="docs/README_zh-CN.md">简体中文</a> |
|
||||
<a title="Chinese" href="docs/README_zh-TW.md">繁體中文</a>
|
||||
</div>
|
||||
|
||||
<a href="https://xpoet.cn"><img align="center" alt="Keep" src="https://cdn.jsdelivr.net/gh/XPoet/image-hosting@master/hexo-theme-keep/keep-logo-slogan.svg"></a>
|
||||
|
@ -103,5 +103,7 @@ This project exists thanks to all the people who contribute.
|
|||
|
||||
## :memo: License
|
||||
|
||||
[GPL-3.0](https://github.com/XPoet/hexo-theme-keep/blob/master/LICENSE) Copyright © 2020-present XPoet
|
||||
[AGPL-3.0](https://github.com/XPoet/hexo-theme-keep/blob/master/LICENSE)
|
||||
|
||||
Copyright © 2020-present XPoet
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
## ======================================================================================
|
||||
## Keep v3.6.0
|
||||
## Keep v3.6.1
|
||||
## Preview: https://xpoet.cn
|
||||
## Documents: https://keep-docs.xpoet.cn
|
||||
## Repository: https://github.com/XPoet/hexo-theme-keep
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<div align="right">
|
||||
语言:
|
||||
简中
|
||||
<a title="English" href="../README.md">English</a>
|
||||
<a title="Chinese" href="README_zh-TW.md">繁中</a>
|
||||
简体中文 |
|
||||
<a title="English" href="../README.md">English</a> |
|
||||
<a title="Chinese" href="README_zh-TW.md">繁體中文</a>
|
||||
</div>
|
||||
<a href="https://xpoet.cn"><img align="center" alt="Keep" src="https://cdn.jsdelivr.net/gh/XPoet/image-hosting@master/hexo-theme-keep/keep-logo-slogan.svg"></a>
|
||||
|
||||
|
@ -102,4 +102,6 @@ $ git pull
|
|||
|
||||
## :memo: 许可
|
||||
|
||||
[GPL-3.0](https://github.com/XPoet/hexo-theme-keep/blob/master/LICENSE) Copyright © 2020-present XPoet
|
||||
[AGPL-3.0](https://github.com/XPoet/hexo-theme-keep/blob/master/LICENSE)
|
||||
|
||||
Copyright © 2020-present XPoet
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<div align="right">
|
||||
語言:
|
||||
繁中
|
||||
<a title="English" href="../README.md">English</a>
|
||||
<a title="Chinese" href="README_zh-CN.md">简中</a>
|
||||
繁體中文 |
|
||||
<a title="English" href="../README.md">English</a> |
|
||||
<a title="Chinese" href="README_zh-CN.md">简体中文</a>
|
||||
</div>
|
||||
|
||||
<a href="https://xpoet.cn"><img align="center" alt="Keep" src="https://cdn.jsdelivr.net/gh/XPoet/image-hosting@master/hexo-theme-keep/keep-logo-slogan.svg"></a>
|
||||
|
@ -103,4 +103,6 @@ $ git pull
|
|||
|
||||
## :memo: 許可
|
||||
|
||||
[GPL-3.0](https://github.com/XPoet/hexo-theme-keep/blob/master/LICENSE) Copyright © 2020-present XPoet
|
||||
[AGPL-3.0](https://github.com/XPoet/hexo-theme-keep/blob/master/LICENSE)
|
||||
|
||||
Copyright © 2020-present XPoet
|
||||
|
|
|
@ -34,7 +34,7 @@ const { site_uv: bsz_site_uv, site_pv: bsz_site_pv, enable: bsz_enable } = theme
|
|||
</div>
|
||||
<% } %>
|
||||
<div class="theme-info info-item">
|
||||
<%- __('powered_by', '<a target="_blank" href="https://hexo.io">Hexo</a>') %> | <%- __('theme') %> <a class="theme-version" target="_blank" href="https://github.com/XPoet/hexo-theme-keep">Keep v3.6.0</a>
|
||||
<%- __('powered_by', '<a target="_blank" href="https://hexo.io">Hexo</a>') %> | <%- __('theme') %> <a class="theme-version" target="_blank" href="https://github.com/XPoet/hexo-theme-keep">Keep v3.6.1</a>
|
||||
</div>
|
||||
<% if (f_icp) { %>
|
||||
<div class="icp-info info-item">
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
<%
|
||||
const target_date = post.date !== post.updated ? post.updated : post.date
|
||||
%>
|
||||
<div class="home-article-meta-info-container">
|
||||
<div class="home-article-meta-info">
|
||||
<span>
|
||||
<i class="fas fa-history"></i>
|
||||
<span class="home-article-date" data-date="<%= target_date %>">
|
||||
<%= date(target_date, 'YYYY-MM-DD') %>
|
||||
<span class="home-article-date" data-updated="<%= post.updated %>">
|
||||
<%= date(post.updated, 'YYYY-MM-DD') %>
|
||||
</span>
|
||||
</span>
|
||||
<% if (post.categories.length && theme.home_article.category.enable === true) { %>
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
<div class="article-content keep-markdown-body">
|
||||
<% if (page?.aging === true) { %>
|
||||
<div class="article-aging-tips" data-update-date="<%= page.updated %>" data-aging-days="<%= page?.agingDays %>">
|
||||
<div class="article-aging-tips" data-update-date="<%= page.updated %>" data-aging-days="<%= page?.aging_days %>">
|
||||
<i class="fa-solid fa-circle-exclamation"></i><%- __('article-aging', '<span class="days">0</span>') %>
|
||||
</div>
|
||||
<% } %>
|
||||
|
@ -41,7 +41,9 @@
|
|||
<%- page.content %>
|
||||
</div>
|
||||
|
||||
<% if (theme.post?.copyright_info === true || theme?.copyright_info?.enable === true) { %>
|
||||
<% if (
|
||||
(theme.post?.copyright_info === true || theme?.copyright_info?.enable === true) && page?.copyright_info !== false
|
||||
) { %>
|
||||
<div class="post-copyright-info">
|
||||
<%- partial('_partial/article-copyright-info') %>
|
||||
</div>
|
||||
|
|
|
@ -1,14 +1,13 @@
|
|||
{
|
||||
"name": "hexo-theme-keep",
|
||||
"version": "3.6.0",
|
||||
"version": "3.6.1",
|
||||
"private": false,
|
||||
"description": "A simple and elegant theme for Hexo.",
|
||||
"scripts": {
|
||||
"npm:publish": "npm publish",
|
||||
"format": "prettier --write ./source/js/*.js ./scripts",
|
||||
"lint:style": "stylelint --fix ./source/css",
|
||||
"git:push": "git push --tag && git push -u origin dev",
|
||||
"git:add": "npm run lint:style && git add ."
|
||||
"git:add": "npm run format && npm run lint:style && git add ."
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -24,7 +23,7 @@
|
|||
"powerful"
|
||||
],
|
||||
"author": "XPoet",
|
||||
"license": "GPL-3.0",
|
||||
"license": "AGPL-3.0",
|
||||
"bugs": {
|
||||
"url": "https://github.com/XPoet/hexo-theme-keep/issues"
|
||||
},
|
||||
|
|
|
@ -295,7 +295,7 @@ KEEP.initUtils = () => {
|
|||
post &&
|
||||
post.forEach((v) => {
|
||||
const nowDate = Date.now()
|
||||
const postDate = new Date(v.dataset.date.split(' GMT')[0]).getTime()
|
||||
const postDate = new Date(v.dataset.updated.split(' GMT')[0]).getTime()
|
||||
v.innerHTML = this.getHowLongAgo(Math.floor((nowDate - postDate) / 1000))
|
||||
})
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue