website: title auto add icon.

This commit is contained in:
jaywcjlove
2022-10-15 13:32:12 +08:00
parent a24f6a91a4
commit cadc7dad14
5 changed files with 28 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import fs from 'fs-extra';
import path from 'path';
import { getSVGNode } from './getSVGNode.mjs';
const ICONS_PATH = path.resolve(process.cwd(), 'scripts/assets')
export const ICONS_PATH = path.resolve(process.cwd(), 'scripts/assets')
export function homeCardIcons(node, parent, isHome) {
if (isHome && node && node.type === 'element' && node.properties?.class?.includes('home-card')) {