hinzugefügt classes zu shortcodes

This commit is contained in:
Andreas Hnida 2024-03-21 11:44:20 +01:00
commit 79fe74d9fc
3 changed files with 4 additions and 3 deletions

View file

@ -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">
{{ .Inner }}
</div>

View file

@ -1,5 +1,5 @@
{{/* 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.." }}
{{ printf "<div class=\" markdown-inner items-center flex-1 px-4 \">"| safeHTML }}
{{ . | safeHTML }}

View file

@ -1,4 +1,5 @@
<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 }}" >
{{ .Inner }}
</div>