This commit is contained in:
xaoxuu 2021-08-14 10:54:58 +08:00
parent 52bcd5812a
commit 7abbf15214
2 changed files with 4 additions and 1 deletions

View File

@ -20,7 +20,7 @@ hexo.extend.tag.register('folding', function(args, content) {
}
el += '>';
// summary
el += '<summary><span>' + args.title + '</span></summary>';
el += '<summary><span>' + (args.title || '') + '</span></summary>';
// content
el += '<div class="body">';
el += hexo.render.renderSync({text: content, engine: 'markdown'}).split('\n').join('');

View File

@ -21,6 +21,9 @@
margin: 1rem 0
.md .tag-plugin.note[color]
code
background: none
.md .tag-plugin.note:not([color])
.highlight
background: var(--block-hover)