From 9887327ade1eb3e9496acc6bcc8771dcba6b1aa9 Mon Sep 17 00:00:00 2001 From: Sviatoslav Abakumov Date: Fri, 6 Dec 2024 20:39:53 +0400 Subject: [PATCH] Move global SVGs to assets and find them with resources.Get --- {static => assets}/img/arrow-button.svg | 0 {static => assets}/img/ico-asterisk.svg | 0 {static => assets}/img/ico-clock.svg | 0 {static => assets}/img/ico-success.svg | 0 {static => assets}/img/ico-talk.svg | 0 {static => assets}/img/logo.svg | 0 layouts/about/about.html | 4 +++- layouts/partials/contact-form.html | 10 +++++++--- layouts/partials/footer.html | 4 +++- layouts/partials/header.html | 6 ++++-- 10 files changed, 17 insertions(+), 7 deletions(-) rename {static => assets}/img/arrow-button.svg (100%) rename {static => assets}/img/ico-asterisk.svg (100%) rename {static => assets}/img/ico-clock.svg (100%) rename {static => assets}/img/ico-success.svg (100%) rename {static => assets}/img/ico-talk.svg (100%) rename {static => assets}/img/logo.svg (100%) diff --git a/static/img/arrow-button.svg b/assets/img/arrow-button.svg similarity index 100% rename from static/img/arrow-button.svg rename to assets/img/arrow-button.svg diff --git a/static/img/ico-asterisk.svg b/assets/img/ico-asterisk.svg similarity index 100% rename from static/img/ico-asterisk.svg rename to assets/img/ico-asterisk.svg diff --git a/static/img/ico-clock.svg b/assets/img/ico-clock.svg similarity index 100% rename from static/img/ico-clock.svg rename to assets/img/ico-clock.svg diff --git a/static/img/ico-success.svg b/assets/img/ico-success.svg similarity index 100% rename from static/img/ico-success.svg rename to assets/img/ico-success.svg diff --git a/static/img/ico-talk.svg b/assets/img/ico-talk.svg similarity index 100% rename from static/img/ico-talk.svg rename to assets/img/ico-talk.svg diff --git a/static/img/logo.svg b/assets/img/logo.svg similarity index 100% rename from static/img/logo.svg rename to assets/img/logo.svg diff --git a/layouts/about/about.html b/layouts/about/about.html index f4c8c26..b81c6f2 100644 --- a/layouts/about/about.html +++ b/layouts/about/about.html @@ -115,7 +115,9 @@

{{ .Title }}

x-data="LetsTalkButton" x-on:click.prevent="talkToUs" >Let's talk{{ - readFile "static/img/arrow-button.svg" | strings.TrimSpace | safeHTML + (resources.Get "img/arrow-button.svg").Content + | strings.TrimSpace + | safeHTML }}