mirror of
https://github.com/jannikmenzel/iFSR-Website.git
synced 2025-06-05 09:08:48 +02:00
implemented headline icons
This commit is contained in:
parent
7e15d46684
commit
00b10cde25
57 changed files with 131 additions and 76 deletions
|
@ -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 -}}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue