From 7abbf152143baa36ffb0fd87728344704b048436 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sat, 14 Aug 2021 10:54:58 +0800 Subject: [PATCH] css --- scripts/tags/folding.js | 2 +- source/css/_layout/tag-plugins/note.styl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/tags/folding.js b/scripts/tags/folding.js index 61bda9d..33dae48 100644 --- a/scripts/tags/folding.js +++ b/scripts/tags/folding.js @@ -20,7 +20,7 @@ hexo.extend.tag.register('folding', function(args, content) { } el += '>'; // summary - el += '' + args.title + ''; + el += '' + (args.title || '') + ''; // content el += '
'; el += hexo.render.renderSync({text: content, engine: 'markdown'}).split('\n').join(''); diff --git a/source/css/_layout/tag-plugins/note.styl b/source/css/_layout/tag-plugins/note.styl index b67d97f..3ff534e 100644 --- a/source/css/_layout/tag-plugins/note.styl +++ b/source/css/_layout/tag-plugins/note.styl @@ -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)