diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-06-02 20:52:45 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-06-02 20:52:45 -0300 |
commit | 0349933d630602dc20a881d0fae49af7b59f270e (patch) | |
tree | 5329609c84d89c44dee2d57bfdf793d4adfa2f2c /src | |
parent | 0213554fbd0d294df9093dc37697384d44488b49 (diff) |
content: generateContentHeading: slot tag besides <p>
Diffstat (limited to 'src')
-rw-r--r-- | src/content/dependencies/generateContentHeading.js | 3 |
1 files changed, 2 insertions, 1 deletions
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, |