From 31a7861f6cd7b2670b77728cebb9b873e8d9ddc4 Mon Sep 17 00:00:00 2001 From: Olivia206 <olivia.simonet@mmibordeaux.com> Date: Mon, 8 Jan 2024 10:46:10 +0100 Subject: [PATCH] alignment --- layouts/partials/events/event-infos.html | 40 ++++++++++++------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/layouts/partials/events/event-infos.html b/layouts/partials/events/event-infos.html index 8e0f22e1..82a475a2 100644 --- a/layouts/partials/events/event-infos.html +++ b/layouts/partials/events/event-infos.html @@ -33,27 +33,27 @@ {{ $eventTime := time.AsTime .Params.dates.from.day}} {{ if gt $eventTime time.Now }} - {{ with .Params.dates.add_to_calendar }} - {{ $links := . }} - <li class="events-actions"> - <span>{{ i18n "events.add_to_calendar.title" }}</span> - {{- $types := slice "ical" "google" "office" "outlook" "yahoo" -}} - {{- range $type := $types -}} - {{ $label := i18n (printf "events.add_to_calendar.%s" $type) }} - {{ with index $links $type }} - <a class="chip" - {{ if eq $type "ical" -}} - {{ printf `href="%s"` . | safeHTMLAttr }} download - {{ else }} - href="{{ . }}" - target="_blank" - {{ end }} > - {{- $label -}} - </a> + {{ with .Params.dates.add_to_calendar }} + {{ $links := . }} + <li class="events-actions"> + <span>{{ i18n "events.add_to_calendar.title" }}</span> + {{- $types := slice "ical" "google" "office" "outlook" "yahoo" -}} + {{- range $type := $types -}} + {{ $label := i18n (printf "events.add_to_calendar.%s" $type) }} + {{ with index $links $type }} + <a class="chip" + {{ if eq $type "ical" -}} + {{ printf `href="%s"` . | safeHTMLAttr }} download + {{ else }} + href="{{ . }}" + target="_blank" + {{ end }} > + {{- $label -}} + </a> + {{- end }} {{- end }} - {{- end }} - </li> - {{- end }} + </li> + {{- end }} {{- end }} </ul> -- GitLab