From 0349933d630602dc20a881d0fae49af7b59f270e Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 2 Jun 2023 20:52:45 -0300 Subject: content: generateContentHeading: slot tag besides

--- src/content/dependencies/generateContentHeading.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content/dependencies/generateContentHeading.js b/src/content/dependencies/generateContentHeading.js index 109a32fd..1666ef4b 100644 --- a/src/content/dependencies/generateContentHeading.js +++ b/src/content/dependencies/generateContentHeading.js @@ -10,10 +10,11 @@ export default { slots: { title: {type: 'html'}, id: {type: 'string'}, + tag: {type: 'string', default: 'p'}, }, content(slots) { - return html.tag('p', + return html.tag(slots.tag, { class: 'content-heading', id: slots.id, -- cgit 1.3.0-6-gf8a5