Updated
This commit is contained in:
parent
51161808ae
commit
ed7f12cac4
22 changed files with 162 additions and 113 deletions
|
|
@ -1,14 +1,18 @@
|
|||
import * as toml from 'toml'
|
||||
import * as fs from 'fs'
|
||||
|
||||
const config = toml.parse(fs.readFileSync('configs/config.site.toml', 'utf8'))
|
||||
|
||||
interface Props {
|
||||
year: string
|
||||
name: string
|
||||
}
|
||||
|
||||
|
||||
export default (props: Props) => {
|
||||
return (
|
||||
<>
|
||||
<span>
|
||||
Copyright © {props.year} {props.name} All Rights Reserved.
|
||||
</span>
|
||||
</>
|
||||
<span>
|
||||
Copyright © {config.copyright.year} {config.copyright.name} All Rights Reserved.
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue