feat: add default prompt changes.

This commit is contained in:
jaywcjlove
2022-11-03 11:49:21 +08:00
parent e87ce59a88
commit d8ab87b0e0
3 changed files with 8 additions and 2 deletions

View File

@ -3,6 +3,12 @@ import path from 'path';
import { getSVGNode, ICONS_PATH } from './getSVGNode.mjs';
export function homeCardIcons(node, parent, isHome) {
if (isHome && node && node.type === 'element' && node.properties?.class?.includes('contributing')) {
const info = node.properties['data-info'];
if (!info) {
node.properties['data-info'] = '👆待完善需要您的参与';
}
}
if (isHome && node && node.type === 'element' && node.properties?.class?.includes('home-card')) {
node.children = node.children.map((child) => {
const href = child.properties?.href;