CHANGE image handling, ADD partials to reuse structure, REFACTOR

This commit is contained in:
Hoernschen 2025-04-17 16:22:33 +02:00
parent 1265491dee
commit 01dcf04b8a
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
36 changed files with 1181 additions and 864 deletions

View file

@ -1,22 +1,19 @@
{{- $contact := .contact }}
{{- $content := .content }}
{{- $id := "contact"}}
{{if $contact.id}}
{{- $id = $contact.id}}
{{else if .id}}
{{- $id = .id }}
{{- $contact := .contact }} {{- $content := .content }} {{- $id := "contact"}}
{{if $contact.id}} {{- $id = $contact.id}} {{else if .id}} {{- $id = .id }}
{{end}}
<div id="{{ $id }}" class="section section-highlight">
<div class="section-content contact">
<div class="contact-text">
<h1>{{ $contact.title }}</h1>
{{ if $contact.subtitle }}
<h3>{{ $contact.subtitle }}</h3>
{{ end }}
<p>{{ $content }}</p>
</div>
<div class="contact-button-container">
<a class="contact-button" href="{{ $contact.button.url }}">{{ $contact.button.text }}</a>
</div>
<div class="section-content contact">
<div class="contact-text">
<h1>{{ $contact.title }}</h1>
{{ if $contact.subtitle }}
<h3>{{ $contact.subtitle }}</h3>
{{ end }}
<p>{{ $content }}</p>
</div>
<div class="contact-button-container">
{{ with $contact.button }}
{{ partial "components/button.html" . }}
{{ end }}
</div>
</div>
</div>