From 15049eb76277b198e87654bf19f82a044283652c Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Fri, 17 Nov 2023 13:27:06 +0100 Subject: [PATCH] use static dir for images reference since scss --- assets/scss/custom.scss | 6 ++---- {assets => static}/images/bg/pattern-1.png | Bin {assets => static}/images/svg/curve-1.svg | 0 {assets => static}/images/svg/curve-2.svg | 0 {assets => static}/images/svg/curve-3.svg | 0 {assets => static}/images/svg/curve-4.svg | 0 6 files changed, 2 insertions(+), 4 deletions(-) mode change 100755 => 100644 assets/scss/custom.scss rename {assets => static}/images/bg/pattern-1.png (100%) rename {assets => static}/images/svg/curve-1.svg (100%) rename {assets => static}/images/svg/curve-2.svg (100%) rename {assets => static}/images/svg/curve-3.svg (100%) rename {assets => static}/images/svg/curve-4.svg (100%) diff --git a/assets/scss/custom.scss b/assets/scss/custom.scss old mode 100755 new mode 100644 index 9c3d5f7..39baf1e --- a/assets/scss/custom.scss +++ b/assets/scss/custom.scss @@ -19,12 +19,10 @@ $icon-red: #f0384d; $icon-yellow: #fcc958; // Pattern -// hugo needs to precompile images in public dir, and make it automatically with images called from content. -// here we need to use it in css, then need to generate it, calling it first from a content md file. @mixin add-bg-pattern($id) { background-repeat: repeat; background-position: top center; - background-image: url('../images/bg/pattern-#{$id}.png'); + background-image: url('/images/bg/pattern-#{$id}.png'); } // Sections bg transitions @@ -35,7 +33,7 @@ $icon-yellow: #fcc958; position: absolute; width: 100%; height: 100%; - background-image: url('../images/svg/curve-#{$id}.svg'); + background-image: url('/images/svg/curve-#{$id}.svg'); background-size: contain; background-position: $pos center; background-repeat: no-repeat; diff --git a/assets/images/bg/pattern-1.png b/static/images/bg/pattern-1.png similarity index 100% rename from assets/images/bg/pattern-1.png rename to static/images/bg/pattern-1.png diff --git a/assets/images/svg/curve-1.svg b/static/images/svg/curve-1.svg similarity index 100% rename from assets/images/svg/curve-1.svg rename to static/images/svg/curve-1.svg diff --git a/assets/images/svg/curve-2.svg b/static/images/svg/curve-2.svg similarity index 100% rename from assets/images/svg/curve-2.svg rename to static/images/svg/curve-2.svg diff --git a/assets/images/svg/curve-3.svg b/static/images/svg/curve-3.svg similarity index 100% rename from assets/images/svg/curve-3.svg rename to static/images/svg/curve-3.svg diff --git a/assets/images/svg/curve-4.svg b/static/images/svg/curve-4.svg similarity index 100% rename from assets/images/svg/curve-4.svg rename to static/images/svg/curve-4.svg