Skip to content

Commit

Permalink
fix: modify footer content.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 6, 2024
1 parent fbb7ffc commit 2a7895e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/nodes/footer.ts
Expand Up @@ -4,7 +4,10 @@ import { Option as InitOption } from './search.js';
import { getVNode } from '../utils/getSVGNode.js';

export function footer({ isHome, config }: InitOption = {}): Element {
let footerText = process.env.LICENSE || config?.license || '© 2022 Kenny Wang.';
let footerText =
process.env.LICENSE ||
config?.license ||
'© 2022 <a href="https://wangchujiang.com/#/app" target="_blank">Kenny Wang</a>.';
const customText = process.env.REF_FOOTER || config?.footer;
const footerVNode = customText ? getVNode(customText || '') : [];
if (isHome) {
Expand Down

0 comments on commit 2a7895e

Please sign in to comment.