Commit 839e393b authored by Maxime BOSSARD's avatar Maxime BOSSARD
Browse files

application d'un fix pour les images du header mal sourcées cf...

application d'un fix pour les images du header mal sourcées cf https://github.com/halogenica/beautifulhugo/issues/26
parent 6c5c7883
Pipeline #296379 passed with stages
in 13 seconds
......@@ -12,7 +12,6 @@ test:
pages:
script:
#- hugo --baseURL "https://mxbossard.frama.io/test-hugo/" --debug
- export HTTPS_PAGES_URL=$( echo "$CI_PAGES_URL/" | sed -e 's/^http:/https:/' )
- "echo Built URL with CI vars: $HTTPS_PAGES_URL"
- hugo --baseURL "$HTTPS_PAGES_URL"
......
......@@ -11,7 +11,7 @@
{{ if or $bigimg ($.Scratch.Get "title") }}
{{ if $bigimg }}
<div id="header-big-imgs" data-num-img={{len $bigimg}} {{range $i, $img := $bigimg}}data-img-src-{{add $i 1}}="{{$img.src | absURL }}" {{ if $img.desc}}data-img-desc-{{add $i 1}}="{{$img.desc}}"{{end}}{{end}}></div>
<div id="header-big-imgs" data-num-img={{len $bigimg}} {{range $i, $img := $bigimg}}data-img-src-{{add $i 1}}="{{$.Site.BaseURL}}{{$img.src}}" {{ if $img.desc}}data-img-desc-{{add $i 1}}="{{$img.desc}}"{{end}}{{end}}></div>
{{ end }}
<header class="header-section {{ if $bigimg }}has-img{{ end }}">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment