This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
Unable to show images #12
Comments
Try to put the images into the |
I've done that before I moved under the folder |
But it's interesting because I can get the logos showed up. They are not defined within the curly brackets but as parameters or in the main content. |
Hello, I was facing the same issue and I'm not very sure but after digging a little bit the issue seems related to the removal of the --- a/layouts/shortcodes/jumbo.html
+++ b/layouts/shortcodes/jumbo.html
@@ -1,10 +1,9 @@
{{ $_hugo_config := `{ "version": 1 }` }}
+{{ $img := .Get "img" }}
{{ $imgLabel := .Get "imgLabel" }}
{{ $logo := .Site.Params.logos.jumbo }}
<div class="jumbo">
- <div class="jumbo-cover" style="background-image: url('{{ .Get "img" }}')" {{ if $imgLabel }}aria-label="{{ $imgLabel }}"{{ end }}></div>
- <img id="jumbo-img" src="{{ .Get "img" }}" />
- <div id="jumbo-overlay"></div>
+ <div class="jumbo-cover"></div>
<div class="inner-wrapper">
{{ if $logo }}
<img class="jumbo-logo" src="{{ $logo }}" alt="logo {{ .Site.Title }}"> maybe because the property was moved to a SCSS file for the site-devfest-2020 https://github.com/GDGToulouse/site-devfest-2020/blob/9ea5bf897bdc1a572ddcc5a42f5ddd6067c09eb5/src/styles/home.scss#L23-L39 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I tried to show a background image in the settings, for example
{{% jumbo img="/images/screenshot.jpg" imgLabel="screen shot" %}}
I can't get the image show in the background. The image is at
/content/images
.The text was updated successfully, but these errors were encountered: