mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-18 05:01:21 +08:00
website: add search feature. #32
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import formatter from '@uiw/formatter';
|
||||
|
||||
export function footer(options = {}) {
|
||||
export function footer({ isHome } = {}) {
|
||||
let footerText = '© 2022 Kenny Wang.';
|
||||
if (options.isHome) {
|
||||
if (isHome) {
|
||||
const now = new Date();
|
||||
const utc = now.getTime() + now.getTimezoneOffset() * 60000;
|
||||
const cst = new Date(utc + 3600000 * 8);
|
||||
|
Reference in New Issue
Block a user