commit
5367284355
10
README.md
10
README.md
|
@ -1,8 +1,8 @@
|
||||||
<div align="right">
|
<div align="right">
|
||||||
Language:
|
Language:
|
||||||
English
|
English |
|
||||||
<a title="Chinese" href="docs/README_zh-CN.md">简中</a>
|
<a title="Chinese" href="docs/README_zh-CN.md">简体中文</a> |
|
||||||
<a title="Chinese" href="docs/README_zh-TW.md">繁中</a>
|
<a title="Chinese" href="docs/README_zh-TW.md">繁體中文</a>
|
||||||
</div>
|
</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>
|
<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
|
## :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
|
## Preview: https://xpoet.cn
|
||||||
## Documents: https://keep-docs.xpoet.cn
|
## Documents: https://keep-docs.xpoet.cn
|
||||||
## Repository: https://github.com/XPoet/hexo-theme-keep
|
## Repository: https://github.com/XPoet/hexo-theme-keep
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<div align="right">
|
<div align="right">
|
||||||
语言:
|
语言:
|
||||||
简中
|
简体中文 |
|
||||||
<a title="English" href="../README.md">English</a>
|
<a title="English" href="../README.md">English</a> |
|
||||||
<a title="Chinese" href="README_zh-TW.md">繁中</a>
|
<a title="Chinese" href="README_zh-TW.md">繁體中文</a>
|
||||||
</div>
|
</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>
|
<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: 许可
|
## :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">
|
<div align="right">
|
||||||
語言:
|
語言:
|
||||||
繁中
|
繁體中文 |
|
||||||
<a title="English" href="../README.md">English</a>
|
<a title="English" href="../README.md">English</a> |
|
||||||
<a title="Chinese" href="README_zh-CN.md">简中</a>
|
<a title="Chinese" href="README_zh-CN.md">简体中文</a>
|
||||||
</div>
|
</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>
|
<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: 許可
|
## :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>
|
||||||
<% } %>
|
<% } %>
|
||||||
<div class="theme-info info-item">
|
<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>
|
</div>
|
||||||
<% if (f_icp) { %>
|
<% if (f_icp) { %>
|
||||||
<div class="icp-info info-item">
|
<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-container">
|
||||||
<div class="home-article-meta-info">
|
<div class="home-article-meta-info">
|
||||||
<span>
|
<span>
|
||||||
<i class="fas fa-history"></i>
|
<i class="fas fa-history"></i>
|
||||||
<span class="home-article-date" data-date="<%= target_date %>">
|
<span class="home-article-date" data-updated="<%= post.updated %>">
|
||||||
<%= date(target_date, 'YYYY-MM-DD') %>
|
<%= date(post.updated, 'YYYY-MM-DD') %>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<% if (post.categories.length && theme.home_article.category.enable === true) { %>
|
<% if (post.categories.length && theme.home_article.category.enable === true) { %>
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
<div class="article-content keep-markdown-body">
|
<div class="article-content keep-markdown-body">
|
||||||
<% if (page?.aging === true) { %>
|
<% 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>') %>
|
<i class="fa-solid fa-circle-exclamation"></i><%- __('article-aging', '<span class="days">0</span>') %>
|
||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
@ -41,7 +41,9 @@
|
||||||
<%- page.content %>
|
<%- page.content %>
|
||||||
</div>
|
</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">
|
<div class="post-copyright-info">
|
||||||
<%- partial('_partial/article-copyright-info') %>
|
<%- partial('_partial/article-copyright-info') %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,14 +1,13 @@
|
||||||
{
|
{
|
||||||
"name": "hexo-theme-keep",
|
"name": "hexo-theme-keep",
|
||||||
"version": "3.6.0",
|
"version": "3.6.1",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "A simple and elegant theme for Hexo.",
|
"description": "A simple and elegant theme for Hexo.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"npm:publish": "npm publish",
|
|
||||||
"format": "prettier --write ./source/js/*.js ./scripts",
|
"format": "prettier --write ./source/js/*.js ./scripts",
|
||||||
"lint:style": "stylelint --fix ./source/css",
|
"lint:style": "stylelint --fix ./source/css",
|
||||||
"git:push": "git push --tag && git push -u origin dev",
|
"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": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -24,7 +23,7 @@
|
||||||
"powerful"
|
"powerful"
|
||||||
],
|
],
|
||||||
"author": "XPoet",
|
"author": "XPoet",
|
||||||
"license": "GPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/XPoet/hexo-theme-keep/issues"
|
"url": "https://github.com/XPoet/hexo-theme-keep/issues"
|
||||||
},
|
},
|
||||||
|
|
|
@ -295,7 +295,7 @@ KEEP.initUtils = () => {
|
||||||
post &&
|
post &&
|
||||||
post.forEach((v) => {
|
post.forEach((v) => {
|
||||||
const nowDate = Date.now()
|
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))
|
v.innerHTML = this.getHowLongAgo(Math.floor((nowDate - postDate) / 1000))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue