feat: add jest
cheatsheet.
This commit is contained in:
@ -1,5 +1,8 @@
|
||||
export function htmlTagAddAttri(node) {
|
||||
export function htmlTagAddAttri(node, { isHome }) {
|
||||
if (node && node.tagName === 'html') {
|
||||
node.properties['data-color-mode'] = 'dark';
|
||||
}
|
||||
if (node && node.tagName === 'body' && isHome) {
|
||||
node.properties.class = ['home'];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user