hinzugefügt classes zu shortcodes
This commit is contained in:
parent
b2412ae4ad
commit
79fe74d9fc
3 changed files with 4 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="relative flex flex-col h-full mt-6 text-gray-700 bg-white bg-clip-border rounded-xl shadow-lg">
|
<div class="relative flex flex-col h-full mt-6 bg-clip-border rounded-xl shadow-lg {{ with .Get "class" }}{{ . }}{{ else }} text-gray-700 bg-white {{ end }}">
|
||||||
<div class="p-10 h-full">
|
<div class="p-10 h-full">
|
||||||
{{ .Inner }}
|
{{ .Inner }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{{/* TODO Add To Docs "top" */}}
|
{{/* TODO Add To Docs "top" */}}
|
||||||
<div class="md:flex mt-6 {{ if isset .Params "center" }}items-center{{ end }}">
|
<div class="md:flex {{ if isset .Params "center" }}items-center {{ end }}{{ with .Get "class" }} {{ . }} {{ else }} mt-6 {{ end }}">
|
||||||
{{ range split .Inner "..column.." }}
|
{{ range split .Inner "..column.." }}
|
||||||
{{ printf "<div class=\" markdown-inner items-center flex-1 px-4 \">"| safeHTML }}
|
{{ printf "<div class=\" markdown-inner items-center flex-1 px-4 \">"| safeHTML }}
|
||||||
{{ . | safeHTML }}
|
{{ . | safeHTML }}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<section class="bg-cover items-center pt-32 pb-32 {{ with .Get "light-text" }}light-text {{ end }} {{ with .Get "classes" }} {{ . }} {{ end }}" style="{{ with .Get "fixed" }}background-attachment: fixed;{{ end }}{{ with .Get "background-image" }}background-image: url('{{ . }}');{{ else }} background-color:{{ .Get "background-color" | safeCSS }}{{ end }}">
|
<section class="bg-cover items-center pt-32 pb-32 {{ with .Get "light-text" }}light-text {{ end }} {{ with .Get "classes" }} {{ . }} {{ end }}" style="{{ with .Get "fixed" }}background-attachment: fixed;{{ end }}{{ with .Get "background-image" }}background-image: url('{{ . }}');{{ else }} background-color:{{ .Get "background-color" | safeCSS }}{{ end }}">
|
||||||
|
{{ with .Get "title" }}<h1 class="font-bold text-center text-white" style="font-family: 'MontserratVar' !important;font-weight: 700;text-shadow: 0px 0.5px 12px rgba(0, 0, 0, 0.9);">{{ . | markdownify }}</h1>{{ end }}
|
||||||
<div class="container items-center py-20" style="{{ with .Get "background-color" }}background-color: {{ . | safeCSS }}{{ end }}" >
|
<div class="container items-center py-20" style="{{ with .Get "background-color" }}background-color: {{ . | safeCSS }}{{ end }}" >
|
||||||
{{ .Inner }}
|
{{ .Inner }}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue