{{ define "main" }} Um den ersten Bereich der Seite beim Scrollen nach unten verschwinden zu lassen und beim Scrollen nach ganz oben wieder erscheinen zu lassen, kannst du JavaScript verwenden, um den Bereich zu verstecken oder anzuzeigen, basierend auf der Scroll-Position. Hier ist, wie du das machen kannst: Schritt 1: Füge eine ID oder Klasse zum Header hinzu Füge eine ID oder Klasse zum
-Element hinzu, damit du es leicht mit JavaScript ansprechen kannst.
{{ with .Params.banner }} {{ if .enable }}
{{ with .title }}

{{ . | markdownify }}

{{ end }} {{ with .button }} {{ if .enable }} {{ end }} {{ end }}
{{ end }} {{ end }}
{{ if .Params.whyamperion.enable }} {{ partial "whyamperion.html" . }} {{ end }} {{ with site.GetPage "/service" }} {{ with .Params.service }}
{{ with .title }}

{{ . | markdownify }}

{{ end }}
{{ with .description }}

{{ . | markdownify }}

{{ end }}
{{ range first 3 .service_item }} {{ end }}
{{ end }} {{ end }} {{ with site.GetPage "/focustopic" }} {{ with .Params.service }}
{{ with .title }}

{{ . | markdownify }}

{{ end }}
{{ with .description }}

{{ . | markdownify }}

{{ end }}
{{ range first 3 .service_item }} {{ end }}
{{ end }} {{ end }}
{{ with site.GetPage "/why-amperion" }}

{{ .Params.service.title | default "OUR SERVICES" }}

{{ .Params.service.description | default "Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts." | markdownify }}

{{ range first 6 .Params.featured_service.service_item }}
{{ .name }}

{{ .name }}

{{ .content1 | markdownify }} {{ .content | markdownify }}

{{ end }}
{{ end }}
{{ if .Params.contact.enable }} {{ partial "cta.html" . }} {{ end }} {{ with .Params.about }} {{ if .enable }}
{{ with .title }}

{{ . | markdownify }}

{{ end }}
{{ with .description }}

{{ . | markdownify }}

{{ end }}
{{ with .content }}{{ . | markdownify }}{{ end }}
Img
{{ end }} {{ end }}
{{ if .Params.cta.enable }} {{ partial "cta.html" . }} {{ end }}
{{ with .Params.facts }} {{ if .enable }}
{{ range .fact_item }}
{{ .name }}
{{ end }}
{{ end }} {{ end }}
{{ end }}