From c93948dbc7790d1c36a7e36df4e5485ca249cc37 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 10 Jun 2022 21:13:39 +0200 Subject: Added code and blockquote styles, better headings, various other updates --- tpl/objects/heading.pug | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'tpl/objects') diff --git a/tpl/objects/heading.pug b/tpl/objects/heading.pug index a0de4af..aa3fec9 100644 --- a/tpl/objects/heading.pug +++ b/tpl/objects/heading.pug @@ -1,7 +1,11 @@ -mixin h1-heading(level) +mixin h1-heading(level, inner = false) - let classes = ['o-heading', 'o-heading--' + level] h1(class=classes)&attributes(attributes) - block + if inner + span.o-heading__inner + block + else + block mixin h2-heading(level) - let classes = ['o-heading', 'o-heading--' + level] @@ -28,7 +32,11 @@ mixin h6-heading(level) h6(class=classes)&attributes(attributes) block -mixin div-heading(level) +mixin div-heading(level, inner = false) - let classes = ['o-heading', 'o-heading--' + level] div(class=classes)&attributes(attributes) - block + if inner + span.o-heading__inner + block + else + block -- cgit v1.2.3-70-g09d2