squirrel/layouts/partials/service.html

39 lines
1.4 KiB
HTML
Raw Permalink Normal View History

{{- $service := .service }}
2022-06-27 14:09:44 +00:00
{{- $content := .content }}
{{- $odd := .odd }}
2022-06-27 14:09:44 +00:00
{{- $id := "service"}}
{{if $service.id}}
{{- $id = $service.id}}
2022-06-27 14:09:44 +00:00
{{else if .id}}
{{- $id = .id }}
2022-06-27 14:09:44 +00:00
{{end}}
<div id="{{$id}}" class="section {{if eq $odd 0}} section-even {{end}} row">
<div class="section-content services">
2022-06-27 14:09:44 +00:00
{{if and ($service.image) (eq $service.image.direction "left")}}
<div class="service-icon-container col-5">
2022-07-08 15:35:15 +00:00
<img class="service-icon" src="{{ $service.image.url }}" alt="{{ $service.image.alt }}">
</div>
{{end}}
<div class="service-description {{if $service.image}} col-7 {{end}}">
{{ with $service.title }}
<div class="title">
<h1 class="content-title">{{ . }}</h1>
<div class="divider"></div>
</div>
{{ end }}
2022-06-27 14:09:44 +00:00
<p>{{ $content }}</p>
<br />
{{ if $service.button }}
{{- range $service.button }}
{{ partial "components/button.html" . }}
{{- end }}
{{ end }}
2022-06-27 14:09:44 +00:00
</div>
{{if and ($service.image) (eq $service.image.direction "right")}}
<div class="service-icon-container col-5">
2022-07-08 15:35:15 +00:00
<img class="service-icon" src="{{ $service.image.url }}" alt="{{ $service.image.alt }}">
</div>
{{end}}
</div>
</div>