added Kommentar mit Beispielen zur Benutzung
This commit is contained in:
parent
14096383bf
commit
1729f02bfb
3 changed files with 58 additions and 7 deletions
|
|
@ -1,8 +1,28 @@
|
|||
{{/* TODO Add To Docs "top" */}}
|
||||
<div class="md:flex {{ if isset .Params "center" }}items-center {{ end }}{{ with .Get "class" }} {{ . }} {{ else }} mt-6 {{ end }}">
|
||||
{{ range split .Inner "..column.." }}
|
||||
{{ printf "<div class=\" markdown-inner items-center flex-1 px-4 \">"| safeHTML }}
|
||||
{{ . | safeHTML }}
|
||||
<div class="md:flex {{ if isset .Params "center" }}items-center {{ end }}{{ with .Get "class" }} {{ . }} {{ else }} mt-6 {{ end }}">
|
||||
{{ range split (trim .Inner " \n") "..column.." }}
|
||||
{{ if ne . "" }} <!-- Check if the column content is not empty -->
|
||||
{{ printf "<div class=\"markdown-inner items-center flex-1 px-4 \">"| safeHTML }}
|
||||
{{ . | safeHTML }}
|
||||
{{ printf "</div>" | safeHTML }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{/*
|
||||
Adds the ability to create columns in markdown content.
|
||||
|
||||
Usage:
|
||||
{{< columns class="some-class" >}}
|
||||
Content
|
||||
..column..
|
||||
Content
|
||||
{{< /columns >}}
|
||||
|
||||
|
||||
*/}}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue