+
- <% 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
+ ) { %>
<%- __('article-aging', '0') %>
<% } %>
@@ -41,7 +41,9 @@
<%- page.content %>
<%- partial('_partial/article-copyright-info') %>
diff --git a/package.json b/package.json
index 50ecffa..1957780 100644
--- a/package.json
+++ b/package.json
@@ -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"
},
diff --git a/source/js/utils.js b/source/js/utils.js
index ee2dd1e..b519ea4 100644
--- a/source/js/utils.js
+++ b/source/js/utils.js
@@ -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))
})
},