mirror of https://github.com/onweru/compose.git

Ray
11.36.2023 aeaea2852b989f523ab5a5303bc80d65fbf70c94
experimenting with background img

Modified:
- layouts/shortcodes/liteyoutube.html
4 files modified
7 ■■■■■ changed files
exampleSite/config.toml 2 ●●● patch | view | raw | blame | history
exampleSite/go.mod 1 ●●●● patch | view | raw | blame | history
exampleSite/go.sum 2 ●●●●● patch | view | raw | blame | history
layouts/shortcodes/liteyoutube.html 2 ●●● patch | view | raw | blame | history
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
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
)
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=
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>
<lite-youtube videoid="{{$videoid}}"{{ if $img }} style="background-image: url('{{absURL (printf `images/%s` $img}}`)"{{ end }}{{ if $params }} params="{{$params}}"{{ end }}></lite-youtube>