section und columns shortcodes implementiert
This commit is contained in:
parent
6d5d93fae1
commit
75f3cc4b06
11 changed files with 121 additions and 105 deletions
|
|
@ -1,18 +0,0 @@
|
|||
{{ define "IconHeaderSubheaderText" }}
|
||||
<div class="flex items-center space-x-4">
|
||||
{{ with .icon }}
|
||||
<i class="fas fa-{{ . }} fa-fw text-5xl text-primary py-10"></i>
|
||||
{{ end }}
|
||||
<div>
|
||||
{{ with .headline }}
|
||||
<h2 class="text-xl font-bold">{{ . }}</h2>
|
||||
{{ end }}
|
||||
{{ with .subline }}
|
||||
<h3 class="text-lg text-gray-500">{{ . }}</h3>
|
||||
{{ end }}
|
||||
{{ with .text }}
|
||||
<p class="text-base text-gray-700">{{ . }}</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<div class="iconheadersubheadertext">
|
||||
{{ with .icon }}
|
||||
<i class="fas fa-{{ . }} fa-fw text-5xl text-primary py-10"></i>
|
||||
{{ end }}
|
||||
{{ with .subline }}
|
||||
<h3 class="text-primary pb-5">{{ . }}</h3>
|
||||
{{ end }}
|
||||
{{ if .headline }}
|
||||
<h2 class="font-bold pb-5 {{ if eq .smallheadline true }} text-2xl {{ end }} ">{{ .headline }}</h2>
|
||||
{{ end }}
|
||||
{{ with .content | markdownify }}
|
||||
<p class="text-base text-gray-700">{{ . }}</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue