From ae07ce35dc711eea5fa8ee1ff823833779ab0c83 Mon Sep 17 00:00:00 2001
From: Ruipeng Zhang
Date: Thu, 19 Jan 2023 00:28:14 -0500
Subject: [PATCH] Revert "feat(footer): added copyright"
---
include/schema/common/footer.json | 10 ----------
layout/common/footer.jsx | 3 ---
2 files changed, 13 deletions(-)
diff --git a/include/schema/common/footer.json b/include/schema/common/footer.json
index 3bd55c2..e322bc7 100644
--- a/include/schema/common/footer.json
+++ b/include/schema/common/footer.json
@@ -4,16 +4,6 @@
"description": "Page footer configurations",
"type": "object",
"properties": {
- "copyright": {
- "$ref": "/misc/copyright.json",
- "description": "Copyright text",
- "type": "string",
- "examples": [
- "© 2019",
- "© 2019 - 2020",
- "粤ICP备1234567号"
- ]
- },
"links": {
"$ref": "/misc/poly_links.json",
"description": "Links to be shown on the right of the footer section",
diff --git a/layout/common/footer.jsx b/layout/common/footer.jsx
index fcdecd9..9027107 100644
--- a/layout/common/footer.jsx
+++ b/layout/common/footer.jsx
@@ -11,7 +11,6 @@ class Footer extends Component {
siteYear,
author,
links,
- copyright,
showVisitorCounter,
visitorCounterTitle
} = this.props;
@@ -42,7 +41,6 @@ class Footer extends Component {
{showVisitorCounter ? : null}
- {copyright ? : null}
{Object.keys(links).length ?
@@ -86,7 +84,6 @@ module.exports = cacheComponent(Footer, 'common.footer', props => {
siteYear: date(new Date(), 'YYYY'),
author,
links,
- copyright: footer?.copyright ?? '',
showVisitorCounter: plugins && plugins.busuanzi === true,
visitorCounterTitle: _p('plugin.visitor_count', '0')
};