add automatic linking of "Z9" location to our Wiki #110

Merged
lilly merged 1 commit from feature/blog-z9-location-linking into main 2026-01-01 15:45:39 +01:00

View file

@ -16,7 +16,14 @@
<div class="infos"> <div class="infos">
<span class="li-space"><i class="fa-solid fa-calendar-day"></i> {{ .Date | time.Format "Mon, 2006-01-02 15:04" }}</span> <span class="li-space"><i class="fa-solid fa-calendar-day"></i> {{ .Date | time.Format "Mon, 2006-01-02 15:04" }}</span>
{{- with .Params.location }} {{- with .Params.location }}
<span class="li-space"><i class="fa-solid fa-location-dot"></i> {{ . }}</span> <span class="li-space">
<i class="fa-solid fa-location-dot"></i>
{{- if eq . "Z9" -}}
<a href="https://wiki.hamburg.ccc.de/club:z9:start"> {{ . }}</a>
{{- else -}}
<span> {{ . }}</span>
{{- end -}}
</span>
{{- end }} {{- end }}
{{- if $showTags }} {{- if $showTags }}
{{- with .Page.GetTerms "tags" }} {{- with .Page.GetTerms "tags" }}