mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2025-02-22 20:20:00 +00:00
feat: add center
, right
, left
shortcodes
This commit is contained in:
parent
a6e116452f
commit
5a5d0fe0d9
4 changed files with 21 additions and 0 deletions
3
layouts/shortcodes/center.html
Normal file
3
layouts/shortcodes/center.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<div class='align-center'>
|
||||
{{ .Inner }}
|
||||
</div>
|
3
layouts/shortcodes/left.html
Normal file
3
layouts/shortcodes/left.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<div class='align-left'>
|
||||
{{ .Inner }}
|
||||
</div>
|
3
layouts/shortcodes/right.html
Normal file
3
layouts/shortcodes/right.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<div class='align-right'>
|
||||
{{ .Inner }}
|
||||
</div>
|
|
@ -115,4 +115,16 @@
|
|||
list-style: none;
|
||||
padding-left: 1.5rem;
|
||||
}
|
||||
|
||||
.align-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.align-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.align-left {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue