implemented headline icons

This commit is contained in:
Jannik Menzel 2025-05-20 16:11:26 +02:00
parent 7e15d46684
commit 00b10cde25
57 changed files with 131 additions and 76 deletions

View file

@ -7,7 +7,7 @@
{{- if gt (len $matches) 0 -}}
{{- range $i, $match := $matches -}}
{{- $iconName := replaceRE `^\[(\w+)\]$` `$1` $match -}}
{{- $iconPath := printf "icons/%s.svg" $iconName -}}
{{- $iconPath := printf "icons/heading-icons/%s.svg" $iconName -}}
{{- $svg := resources.Get $iconPath -}}
{{- if $svg -}}
{{- $svgContent := $svg.Content | safeHTML -}}

View file

@ -17,19 +17,19 @@
<div class="hero-card-column left">
<div class="hero-card left-1">
<a href="https://ese.ifsr.de/" class="d-flex align-items-center">
{{ with resources.Get "icons/link.svg" }}
{{ with resources.Get "icons/home-link.svg" }}
{{ .Content | safeHTML }}
{{ end }}
ESE Website
</a>
<a href="/events" class="d-flex align-items-center">
{{ with resources.Get "icons/link.svg" }}
{{ with resources.Get "icons/home-link.svg" }}
{{ .Content | safeHTML }}
{{ end }}
Events
</a>
<a href="/neuigkeiten" class="d-flex align-items-center">
{{ with resources.Get "icons/link.svg" }}
{{ with resources.Get "icons/home-link.svg" }}
{{ .Content | safeHTML }}
{{ end }}
Neuigkeiten