diff --git a/include/schema/common/footer.json b/include/schema/common/footer.json index e322bc7..3bd55c2 100644 --- a/include/schema/common/footer.json +++ b/include/schema/common/footer.json @@ -4,6 +4,16 @@ "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 9027107..baa52f5 100644 --- a/layout/common/footer.jsx +++ b/layout/common/footer.jsx @@ -11,6 +11,7 @@ class Footer extends Component { siteYear, author, links, + copyright, showVisitorCounter, visitorCounterTitle } = this.props; @@ -41,6 +42,7 @@ class Footer extends Component { {showVisitorCounter ? : null}
+ {copyright ? : null}