diff --git a/assets/icons/beitragen.svg b/assets/icons/beitragen.svg new file mode 100644 index 0000000..2f47529 --- /dev/null +++ b/assets/icons/beitragen.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/community.svg b/assets/icons/community.svg new file mode 100644 index 0000000..c31fe11 --- /dev/null +++ b/assets/icons/community.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/kontakt.svg b/assets/icons/kontakt.svg new file mode 100644 index 0000000..fc404d5 --- /dev/null +++ b/assets/icons/kontakt.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/nutzen.svg b/assets/icons/nutzen.svg new file mode 100644 index 0000000..96f755c --- /dev/null +++ b/assets/icons/nutzen.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/projekt.svg b/assets/icons/projekt.svg new file mode 100644 index 0000000..cb845e7 --- /dev/null +++ b/assets/icons/projekt.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/shop.svg b/assets/icons/shop.svg new file mode 100644 index 0000000..3281323 --- /dev/null +++ b/assets/icons/shop.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/spenden.svg b/assets/icons/spenden.svg new file mode 100644 index 0000000..815767b --- /dev/null +++ b/assets/icons/spenden.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/themen.svg b/assets/icons/themen.svg new file mode 100644 index 0000000..d17975a --- /dev/null +++ b/assets/icons/themen.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/veranstaltungen.svg b/assets/icons/veranstaltungen.svg new file mode 100644 index 0000000..819c093 --- /dev/null +++ b/assets/icons/veranstaltungen.svg @@ -0,0 +1 @@ + diff --git a/hugo.toml b/hugo.toml index 0124433..146540a 100644 --- a/hugo.toml +++ b/hugo.toml @@ -57,37 +57,31 @@ expire_days = 2 [[menu.main]] name = "Das Projekt" url = "projekt/" -pre = '' weight = 1 [[menu.main]] name = "OSM nutzen" url = "nutzen/" -pre = '' weight = 2 [[menu.main]] name = "Beitragen" url = "beitragen/" -pre = '' weight = 3 [[menu.main]] name = "Community" url = "community/" -pre = '' weight = 4 [[menu.main]] name = "Themenportal" url = "themen/" -pre = '' weight = 5 [[menu.main]] name = "Kontakt" url = "kontakt/" -pre = '' weight = 6 [[menu.main]] @@ -99,7 +93,6 @@ weight = 7 [[menu.main]] name = "Veranstaltungen" url = "veranstaltungen/" -pre = '' weight = 8 [menu.main.params] short = true @@ -107,7 +100,6 @@ weight = 8 [[menu.main]] name = "Spenden" url = "spenden/" -pre = '' weight = 9 [menu.main.params] short = true @@ -115,7 +107,6 @@ weight = 9 [[menu.main]] name = "Shop" url = "shop/" -pre = '' weight = 10 [menu.main.params] short = true diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index a7cd46d..ed7fa65 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -8,7 +8,8 @@ {{- if eq .Name "" -}}
{{- else -}} - {{.Pre}} {{.Name}} + {{ $icon := .URL | strings.TrimRight "/" }} + {{ with resources.Get (printf "icons/%s.svg" $icon) }}{{ .Content | safeHTML }}{{ end }} {{.Name}} {{ end -}} {{ end -}}