mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-17 12:41:20 +08:00
website: update footer. #102
This commit is contained in:
@ -1,5 +1,10 @@
|
||||
import formatter from '@uiw/formatter';
|
||||
|
||||
export function footer() {
|
||||
export function footer(options = {}) {
|
||||
const footerText = '© 2022 Kenny Wang.';
|
||||
if (options.isHome) {
|
||||
footerText += ` Updated on ${formatter('YYYY/MM/DD HH:mm:ss', new Date())}`;
|
||||
}
|
||||
return {
|
||||
type: 'element',
|
||||
tagName: 'footer',
|
||||
@ -13,10 +18,8 @@ export function footer() {
|
||||
properties: {
|
||||
class: ['max-container'],
|
||||
},
|
||||
children: [
|
||||
{ type: 'text', value: '© 2022 Kenny Wang, All rights reserved.' }
|
||||
],
|
||||
}
|
||||
children: [{ type: 'text', value: footerText }],
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user