From bd04d634ee2c77a2164bad8139006ac3d66879b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksa=20Siri=C5=A1ki?= <31509435+aleksasiriski@users.noreply.github.com> Date: Thu, 8 Jun 2023 16:13:49 +0200 Subject: [PATCH] added option to choose sponsor logos --- assets/images/global/sample-logo-white.svg | 36 ++++++++++++++++ assets/images/global/sample-logo.svg | 37 +++++++++++++++++ assets/jsconfig.json | 2 +- hugo.yaml | 14 ++++--- layouts/index.html | 48 +++++----------------- 5 files changed, 93 insertions(+), 44 deletions(-) create mode 100644 assets/images/global/sample-logo-white.svg create mode 100644 assets/images/global/sample-logo.svg diff --git a/assets/images/global/sample-logo-white.svg b/assets/images/global/sample-logo-white.svg new file mode 100644 index 0000000..30d7ba9 --- /dev/null +++ b/assets/images/global/sample-logo-white.svg @@ -0,0 +1,36 @@ + + + +]> + + + + + + + + + + + + + + + + diff --git a/assets/images/global/sample-logo.svg b/assets/images/global/sample-logo.svg new file mode 100644 index 0000000..c0aea20 --- /dev/null +++ b/assets/images/global/sample-logo.svg @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + diff --git a/assets/jsconfig.json b/assets/jsconfig.json index b74a32f..fe13191 100644 --- a/assets/jsconfig.json +++ b/assets/jsconfig.json @@ -3,7 +3,7 @@ "baseUrl": ".", "paths": { "*": [ - "../../../../../../var/folders/4x/2nl15hbs2jn_x7glzj3w86g00000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3@v3.21000.20300/packages/*" + "../../../../../../../tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3@v3.21000.20300/packages/*" ] } } diff --git a/hugo.yaml b/hugo.yaml index d20af69..606b71d 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -40,12 +40,14 @@ params: - text: Meet our investors and advisors url: "#" logos: - - l1: a - - l1: a - - l1: a - - l1: a - - l1: a - - l1: a + - identifier: a + image: "images/global/sample-logo-white.svg" + alt: "a" + - identifier: b + - identifier: c + - identifier: d + - identifier: e + - identifier: f p4: heading: "From the blog" content: diff --git a/layouts/index.html b/layouts/index.html index 6af6704..fa59311 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -135,43 +135,17 @@
{{ range .Site.Params.P3.Logos }}
- - - - - - - - - - - - - - - - + {{ if .image }} + {{ $sponsor := resources.Get .image }} + {{ .alt }} + {{ else }} + {{ $sponsor := resources.Get "images/global/sample-logo.svg" }} + {{ .alt }} + {{ end }}
{{ end }}