added Kommentar mit Beispielen zur Benutzung

This commit is contained in:
Andreas Hnida 2024-03-21 15:01:15 +01:00
commit 1729f02bfb
3 changed files with 58 additions and 7 deletions

View file

@ -3,4 +3,22 @@
<div class="container items-center py-20" style="{{ with .Get "background-color" }}background-color: {{ . | safeCSS }}{{ end }}" >
{{ .Inner }}
</div>
</section>
</section>
{{/*
This shortcode is a wrapper for a section component. It has a default class of "text-gray-700 bg-white" but can be overridden by passing a class attribute.
Attributes:
1. title
2. background-color
3. background-image
4. light-text
5. fixed
6. classes
Usage:
{{< section title="This is a section" background-color="#f5f5f5" background-image="https://source.unsplash.com/random/1920x1080" light-text="true" fixed="true" classes="text-center" >}}
This is the content of the section
{{< /section >}}
*/}}