This commit is contained in:
Patrick Alvin Alcala 2026-01-30 11:48:35 +08:00
parent 51161808ae
commit ed7f12cac4
22 changed files with 162 additions and 113 deletions

View file

@ -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>
)
}