camper/web/templates/public/services.gohtml

43 lines
1.2 KiB
Plaintext
Raw Normal View History

<!--
SPDX-FileCopyrightText: 2023 jordi fita mas <jordi@tandem.blog>
SPDX-License-Identifier: AGPL-3.0-only
-->
{{ define "title" -}}
{{( pgettext "Services" "title" )}}
{{- end }}
{{ define "head" -}}
{{ template "carouselStyle" }}
{{- end }}
{{ define "content" -}}
{{- /*gotype: dev.tandem.ws/tandem/camper/pkg/services.servicesPage*/ -}}
<h2>{{( pgettext "Services" "title" )}}</h2>
<div class="campsite_services carousel">
<div class="spiel">
<p>{{(gettext "The campsite offers many different services.")}}</p>
</div>
{{ range .Carousel -}}
{{ if .Caption -}}
<figure>
<img src="{{ .Media }}" alt=""/>
<figcaption>{{ .Caption }}</figcaption>
</figure>
{{- else -}}
<img src="{{ .Media }}" alt=""/>
{{- end }}
{{- end }}
</div>
{{ template "carouselInit" }}
<dl>
{{ range .Services -}}
2023-12-20 12:02:56 +00:00
<div class="services_icon">
<dt class="icon_{{ .IconName }}">{{ .Name }}</dt>
<dd>{{ .Description | raw }}</dd>
</div>
{{- end }}
</dl>
{{- end }}