You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{- with resources.Get (printf "images/site-blocks/%s.jpeg" $.name ) -}}
5
+
{{- $.ctx.Scratch.Set $.target . -}}
9
6
{{- else -}}
10
-
{{- errorf "Image matching %q not found _common-resources" $.name -}}
11
-
{{- end -}}
12
-
{{- else -}}
13
-
{{ errorf "[%s] No resource bundle found. Create an empty headless bundle; create content/%s/_common-resources/index.md with \"headless: true\" in front matter. See https://gohugo.io/content-management/page-bundles/#headless-bundle" $.ctx.Page.Lang $.ctx.Page.Lang }}
{{- errorf "Image matching %q not found _common-resources" $.name -}}
14
+
{{- end -}}
15
+
{{- else -}}
16
+
{{ errorf "[%s] No resource bundle found. Create an empty headless bundle; create content/%s/_common-resources/index.md with \"headless: true\" in front matter. See https://gohugo.io/content-management/page-bundles/#headless-bundle" $.ctx.Page.Lang $.ctx.Page.Lang }}
<sectionid="{{ $id }}"{{with$class}}class="{{ . }}"{{end}}style="{{ with $image }}background-image: url({{ .Permalink }}); {{ end }}{{ with $style }}{{ . | safeCSS }}{{ end }}">
13
+
<sectionid="{{ $id }}"class="{{ with $image }}section-with-bgimage{{end}} {{ with $class }}{{ . }}{{ end }}"style="{{ with $image }}background-image: url({{ .Permalink }}); {{ end }}{{ with $style }}{{ . | safeCSS }}{{ end }}">
0 commit comments