From aeaea2852b989f523ab5a5303bc80d65fbf70c94 Mon Sep 17 00:00:00 2001
From: Ray <rwstorer@hotmail.com>
Date: Sun, 11 Jun 2023 01:36:09 +0000
Subject: [PATCH] experimenting with background img

---
 exampleSite/config.toml             |    2 +-
 layouts/shortcodes/liteyoutube.html |    2 +-
 exampleSite/go.mod                  |    1 -
 exampleSite/go.sum                  |    2 ++
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index f00c4c7..a711661 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -4,7 +4,7 @@
 # this example loads the theme as hugo module
 # comment out line below, and uncomment the line after it if you prefer to load the theme normally
 # theme = ["github.com/onweru/compose"] # edit this if you'ld rather use a fork of this repo
-theme = ["github.com/rwstorer/hugo-theme-compose"] # my fork
+theme = ["github.com/rwstorer/hugo-theme-compose"] # my fork.
 # theme = "compose"
 enableGitInfo = true
 
diff --git a/exampleSite/go.mod b/exampleSite/go.mod
index d68440d..d3f429f 100644
--- a/exampleSite/go.mod
+++ b/exampleSite/go.mod
@@ -4,5 +4,4 @@
 
 require (
 	github.com/onweru/compose v0.0.0-20230530114506-a2ddf2b32939 // indirect
-	github.com/rwstorer/hugo-theme-compose v0.0.0-20230611001648-0f1fb40e912e // indirect
 )
diff --git a/exampleSite/go.sum b/exampleSite/go.sum
index 2e7723d..f627c19 100644
--- a/exampleSite/go.sum
+++ b/exampleSite/go.sum
@@ -30,3 +30,5 @@
 github.com/onweru/compose v0.0.0-20230530114506-a2ddf2b32939/go.mod h1:tf1kQIBUcwJ/3mRFU5eiMrMvsDScVTK2IEFsZE3hZOc=
 github.com/rwstorer/hugo-theme-compose v0.0.0-20230611001648-0f1fb40e912e h1:EaCAVi8vhFZzgejGR5pf1MJPl+YC6SY+dgEkckbWyHc=
 github.com/rwstorer/hugo-theme-compose v0.0.0-20230611001648-0f1fb40e912e/go.mod h1:7TS3BoBV/IcLPRT2r7LyTyOqzsS5P5sXKlNpGgxdK/s=
+github.com/rwstorer/hugo-theme-compose v0.0.0-20230611011250-29764d3cdc54 h1:JE41XHF80/O+LqQnc2/GmNpVUxhdnT+QaQP12TeQ4q0=
+github.com/rwstorer/hugo-theme-compose v0.0.0-20230611011250-29764d3cdc54/go.mod h1:7TS3BoBV/IcLPRT2r7LyTyOqzsS5P5sXKlNpGgxdK/s=
diff --git a/layouts/shortcodes/liteyoutube.html b/layouts/shortcodes/liteyoutube.html
index bc56b49..4c9f1c3 100644
--- a/layouts/shortcodes/liteyoutube.html
+++ b/layouts/shortcodes/liteyoutube.html
@@ -1,4 +1,4 @@
 {{ $videoid := .Get "videoid" }}
 {{ $params := .Get "params" }} <!-- not required. List of params here: https://developers.google.com/youtube/player_parameters -->
 {{ $img := .Get "img"}} <!-- not required. The initial background image instead of a generated one. -->
-<lite-youtube videoid="{{$videoid}}"{{ if $img }} style="background-image: url('/images/{{$img}}`)"{{ end }}{{ if $params }} params="{{$params}}"{{ end }}></lite-youtube>
\ No newline at end of file
+<lite-youtube videoid="{{$videoid}}"{{ if $img }} style="background-image: url('{{absURL (printf `images/%s` $img}}`)"{{ end }}{{ if $params }} params="{{$params}}"{{ end }}></lite-youtube>
\ No newline at end of file

--
Gitblit v1.10.0