diff --git a/layouts/modules/list.html b/layouts/modules/list.html index 036a069..80d0562 100644 --- a/layouts/modules/list.html +++ b/layouts/modules/list.html @@ -129,8 +129,8 @@

{{ $logoImage := .Resources.GetMatch "logo.svg" }} {{ $markImage := resources.Get (printf "/images/modules/%s-mark.svg" .File.BaseFileName) }} {{ if $logoImage }} - {{- $relImage := printf "%s/%s" .RelPermalink $logoImage -}} - + {{- $relImage := printf "%s%s" .RelPermalink $logoImage -}} + {{ else if $markImage }} {{ partial "img.html" (dict "image" $markImage "alt" "") }} {{ else }} diff --git a/layouts/modules/single.html b/layouts/modules/single.html index 7398aa8..1c169d1 100644 --- a/layouts/modules/single.html +++ b/layouts/modules/single.html @@ -28,8 +28,8 @@ {{ $logoImage := .Resources.GetMatch "logo.svg" }} {{ $markImage := resources.Get (printf "/images/modules/%s-mark.svg" .File.BaseFileName) }} {{ if $logoImage }} - {{- $relImage := printf "%s/%s" .RelPermalink $logoImage -}} - + {{- $relImage := printf "%s%s" .RelPermalink $logoImage -}} + {{ else if $markImage }} {{ partial "img.html" (dict "image" $markImage "alt" "") }} {{ else }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 73903ad..5f6984c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -59,7 +59,7 @@

Join the community

Privacy Policy Cookie Policy - California Consumer Privacy Act (CCPA) Opt-Out Icon + California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices Notice at Collection diff --git a/layouts/partials/img.html b/layouts/partials/img.html index e472ea1..7ca4ae7 100644 --- a/layouts/partials/img.html +++ b/layouts/partials/img.html @@ -1,4 +1,4 @@ {{- $image := resources.Get .image -}} {{- $size := partial "utils/image-size" .image -}} -{{- $lazy := .lazy | default false -}} -{{- .alt -}} \ No newline at end of file +{{- $lazy := .lazy | default true -}} +{{- .alt -}} \ No newline at end of file diff --git a/layouts/partials/sections/event-banner.html b/layouts/partials/sections/event-banner.html index cb2919f..cdda451 100644 --- a/layouts/partials/sections/event-banner.html +++ b/layouts/partials/sections/event-banner.html @@ -52,7 +52,7 @@

{{ . | markdownify }}

{{ with .section.image }}
- +
{{ end }} diff --git a/layouts/partials/sections/resource-links.html b/layouts/partials/sections/resource-links.html index 9d1428e..29f88f3 100644 --- a/layouts/partials/sections/resource-links.html +++ b/layouts/partials/sections/resource-links.html @@ -27,7 +27,7 @@

{{ . | markdownify }}

{{ with .image }}
- +
{{ end }} {{ with .title }} diff --git a/netlify.toml b/netlify.toml index 8af9d18..ef6eb7f 100644 --- a/netlify.toml +++ b/netlify.toml @@ -38,4 +38,20 @@ [[redirects]] from = "/community-champions/joshua-boylan-long/" to = "/community-champions/josh-long/" - status = 301 \ No newline at end of file + status = 301 + +# Try to fix image loading errors by forcing cache headers +[[headers]] + for = "/images/*" + [headers.values] + Cache-Control = "public, max-age=31536000" + +[[headers]] + for = "/modules/*.svg" + [headers.values] + Cache-Control = "public, max-age=31536000" + +[[headers]] + for = "/fonts/*" + [headers.values] + Cache-Control = "public, max-age=31536000" \ No newline at end of file