diff --git a/content/awards/awards.md b/content/awards/awards.md index b1f0f5e9cfc..20d00d44b85 100644 --- a/content/awards/awards.md +++ b/content/awards/awards.md @@ -105,7 +105,7 @@ Thanks to our amazing community, FORRT has become an ***award-winning*** grassro ### [FORWARD: A UNESCO Decade of Science Programme](../educators-corner/023-forward-a-unesco-decade-of-science-programme/) -FORWARD: A UNESCO Decade of Science Programme +FORWARD: A UNESCO Decade of Science Programme **FORRT** is one of the few initiatives worldwide to be formally endorsed as a **Programme** of the [International Decade of Sciences for Sustainable Development (IDSSD, 2024–2033)](https://www.un-sciences-decade.org/en/endorsed-activities/forward-forrt-world-development-fostering-open-research-reproducibility-worldwide-accessible?hub=63) , led by UNESCO and the United Nations (UN). This endorsement reflects the highest level of UN policy recognition and positions FORRT’s work in Education & Pedagogy (Curriculum Hub), Metascience & Research (Replication Hub) and Social Justice & DEIA as an **essential contribution to the UN’s strategy for achieving the Sustainable Development Goals (SDGs)**. diff --git a/content/home/5-achievements.md b/content/home/5-achievements.md index 362c033db55..1bf7ec9e1aa 100644 --- a/content/home/5-achievements.md +++ b/content/home/5-achievements.md @@ -23,7 +23,7 @@ title = "Achievements & Awards" ### [FORWARD: A UNESCO Decade of Science Programme](../educators-corner/023-forward-a-unesco-decade-of-science-programme/) -FORWARD: A UNESCO Decade of Science Programme +FORWARD: A UNESCO Decade of Science Programme **FORRT** is one of the few initiatives worldwide to be formally endorsed as a **Programme** of the [International Decade of Sciences for Sustainable Development (IDSSD, 2024–2033)](https://www.un-sciences-decade.org/en/endorsed-activities/forward-forrt-world-development-fostering-open-research-reproducibility-worldwide-accessible?hub=63) , led by UNESCO and the United Nations (UN). This endorsement reflects the highest level of UN policy recognition and positions FORRT’s work in Education & Pedagogy (Curriculum Hub), Metascience & Research (Replication Hub) and Social Justice & DEIA as an **essential contribution to the UN’s strategy for achieving the Sustainable Development Goals (SDGs)**. diff --git a/content/home/5-get-involved.md b/content/home/5-get-involved.md index fc603108271..d469cb4790f 100644 --- a/content/home/5-get-involved.md +++ b/content/home/5-get-involved.md @@ -23,7 +23,7 @@ title = "How can you help?" # icon = "users" # icon_pack = "fas" img = "teamwork.webp" - imgalttext = "Image of a megaphone" + imgalttext = "Several hands stacked on top of each other. Illustration." name = "Join Our Teams" description = "Everything we develop and produce is in the open and open to anyone willing to help. Check out our [several teams here](/about/teams) and our [get-involved page](/about/get-involved) too." diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html new file mode 100644 index 00000000000..e86fb9e2f2b --- /dev/null +++ b/layouts/_default/_markup/render-image.html @@ -0,0 +1,28 @@ +{{/* Markdown image hook: reproduce Hugo's default and add intrinsic width/height + so the browser reserves the image's box before it loads. The site stylesheet sets + `img { height: auto; max-width: 100% }`, so the attributes fix the aspect ratio + without freezing the rendered size or breaking responsive scaling. + + Dimensions come from the page bundle's own resource first, then from static/, and + are skipped for remote images and for formats Hugo cannot measure (SVG). */}} +{{- $dest := .Destination -}} +{{- $dims := "" -}} +{{- $raster := slice "png" "jpeg" "gif" "webp" -}} +{{- if not (or (strings.HasPrefix $dest "http") (strings.HasPrefix $dest "//") (strings.HasPrefix $dest "data:")) -}} + {{- with .PageInner.Resources.Get (strings.TrimPrefix "./" $dest) -}} + {{/* Match Hugo's default hook, which links page-bundle images by permalink rather + than by the author's page-relative path. */}} + {{- $dest = .RelPermalink -}} + {{- if in $raster .MediaType.SubType -}} + {{- $dims = printf "width=\"%d\" height=\"%d\"" .Width .Height -}} + {{- end -}} + {{- else -}} + {{- $static := printf "static/%s" (strings.TrimPrefix "/" $dest) -}} + {{- if and (fileExists $static) (in (slice ".png" ".jpg" ".jpeg" ".gif" ".webp") (path.Ext $static | lower)) -}} + {{- with imageConfig $static -}} + {{- $dims = printf "width=\"%d\" height=\"%d\"" .Width .Height -}} + {{- end -}} + {{- end -}} + {{- end -}} +{{- end -}} +{{ .PlainText }} diff --git a/layouts/partials/chatbot.html b/layouts/partials/chatbot.html index 8359b0d0fb9..543f0de65b0 100644 --- a/layouts/partials/chatbot.html +++ b/layouts/partials/chatbot.html @@ -901,7 +901,7 @@ {{ if $active }}