summaryrefslogtreecommitdiffstats
path: root/tpl/objects
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/objects')
-rw-r--r--tpl/objects/heading.pug16
1 files changed, 12 insertions, 4 deletions
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 @@
1mixin h1-heading(level) 1mixin h1-heading(level, inner = false)
2 - let classes = ['o-heading', 'o-heading--' + level] 2 - let classes = ['o-heading', 'o-heading--' + level]
3 h1(class=classes)&attributes(attributes) 3 h1(class=classes)&attributes(attributes)
4 block 4 if inner
5 span.o-heading__inner
6 block
7 else
8 block
5 9
6mixin h2-heading(level) 10mixin h2-heading(level)
7 - let classes = ['o-heading', 'o-heading--' + level] 11 - let classes = ['o-heading', 'o-heading--' + level]
@@ -28,7 +32,11 @@ mixin h6-heading(level)
28 h6(class=classes)&attributes(attributes) 32 h6(class=classes)&attributes(attributes)
29 block 33 block
30 34
31mixin div-heading(level) 35mixin div-heading(level, inner = false)
32 - let classes = ['o-heading', 'o-heading--' + level] 36 - let classes = ['o-heading', 'o-heading--' + level]
33 div(class=classes)&attributes(attributes) 37 div(class=classes)&attributes(attributes)
34 block 38 if inner
39 span.o-heading__inner
40 block
41 else
42 block