From 258bd8999a8eca0d0889a31e013dc6ef38103235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Tue, 3 Jun 2025 12:28:14 +0200 Subject: [PATCH 1/4] rm ability to use a dir that we don't use and that has no alt text so bad --- layouts/shortcodes/gallery.html | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/layouts/shortcodes/gallery.html b/layouts/shortcodes/gallery.html index 5d80fad8a3..80b25b6a15 100644 --- a/layouts/shortcodes/gallery.html +++ b/layouts/shortcodes/gallery.html @@ -7,36 +7,5 @@ {{- $.Page.Scratch.Add "figurecount" 1 }} {{ $baseURL := .Site.BaseURL }} From 87c142cd0d75c42cd6ca5421237232490f559efd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Tue, 3 Jun 2025 12:46:18 +0200 Subject: [PATCH 2/4] add alt text --- layouts/shortcodes/figureforgallery.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/figureforgallery.html b/layouts/shortcodes/figureforgallery.html index 91559bac59..68b50d7c72 100644 --- a/layouts/shortcodes/figureforgallery.html +++ b/layouts/shortcodes/figureforgallery.html @@ -14,12 +14,13 @@ {{ if ne $resource.Value nil }} {{- $thumb = $resource.Value.RelPermalink }} {{ end }} -
+

A picture: {{ .Get "alt" }}{{ with .Get "caption" }}({{ . }}){{ end }} +

+ From eb5d16cf5a0c67a8287241bf93664beab95841ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Tue, 3 Jun 2025 12:46:33 +0200 Subject: [PATCH 3/4] rm general caption --- content/blog/2023-06-21-coworking/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/blog/2023-06-21-coworking/index.md b/content/blog/2023-06-21-coworking/index.md index d0affc1537..8959e2aee8 100644 --- a/content/blog/2023-06-21-coworking/index.md +++ b/content/blog/2023-06-21-coworking/index.md @@ -114,7 +114,7 @@ introduce yourself (see example slides from this year, below), and to add any relevant links you can think of to the community document. We will promote the event on social media and in various R community spaces and you should feel free to promote the event to your friends and colleagues and through your own channels, but otherwise that's it! -{{< gallery caption = "Slides">}} +{{< gallery >}} {{< figureforgallery src="slide_alex_sm.png" caption="January Community Host, Alex ๐ŸŽ‰" alt="Example slide introducing the January community host, Alex" >}} {{< figureforgallery src="slide_hugo_sm.png" caption="February Community Host, Hugo ๐ŸŽ‰" alt="Example slide introducing the February community host, Hugo" >}} {{< figureforgallery src="slide_nick_sm.png" caption="March Community Host, Nick ๐ŸŽ‰" alt="Example slide introducing the March community host, Nick" >}} From d689faca6ebb83f9d335ea3966938e24cb50d853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Tue, 3 Jun 2025 13:14:04 +0200 Subject: [PATCH 4/4] add missing `photogallery: true` --- content/blog/2017-06-02-unconf2017.md | 1 + content/blog/2017-08-22-visdat.md | 1 + content/blog/2023-06-21-coworking/index.md | 1 + content/blog/2025-01-24-coworking-hackatons/index.en.md | 7 ++++--- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/content/blog/2017-06-02-unconf2017.md b/content/blog/2017-06-02-unconf2017.md index d05a33228f..9b17a59f8a 100644 --- a/content/blog/2017-06-02-unconf2017.md +++ b/content/blog/2017-06-02-unconf2017.md @@ -10,6 +10,7 @@ tags: - meetings - unconf - unconf17 +photogallery: true params: doi: "10.59350/rqjt5-xva30" --- diff --git a/content/blog/2017-08-22-visdat.md b/content/blog/2017-08-22-visdat.md index c01df9b725..2414eb71fa 100644 --- a/content/blog/2017-08-22-visdat.md +++ b/content/blog/2017-08-22-visdat.md @@ -11,6 +11,7 @@ tags: - community - visdat - data visualisation +photogallery: true params: doi: "10.59350/pd2p2-qwv41" --- diff --git a/content/blog/2023-06-21-coworking/index.md b/content/blog/2023-06-21-coworking/index.md index 8959e2aee8..b1100c8e26 100644 --- a/content/blog/2023-06-21-coworking/index.md +++ b/content/blog/2023-06-21-coworking/index.md @@ -11,6 +11,7 @@ tags: - coworking - events description: "Discover how rOpenSci coworking sessions have evolved to include themes and community hosts, while still providing a place of community to work and chat!" +photogallery: true params: doi: "10.59350/ktyc2-er732" --- diff --git a/content/blog/2025-01-24-coworking-hackatons/index.en.md b/content/blog/2025-01-24-coworking-hackatons/index.en.md index d16dc44eae..8f0ceb2c0d 100644 --- a/content/blog/2025-01-24-coworking-hackatons/index.en.md +++ b/content/blog/2025-01-24-coworking-hackatons/index.en.md @@ -21,6 +21,7 @@ featured: true description: "Announcing mini-hackathons to support first time contributors" social: "@rOpenSci@hachyderm.io is hosting mini-hackathons to support first time contributors!" editor: Maรซlle Salmon +photogallery: true params: doi: "10.59350/h666e-50h82" --- @@ -39,9 +40,9 @@ Sunny focused on her journey making her first R package, [bbsTaiwan](https://sun Then Yaoxiang rounded out our call with advice for first-time contributors on the importance of including tests and how to deal with different testing situations, referring to his experience with [medrxivr](https://docs.ropensci.org/medrxivr). {{< gallery >}} -{{< figureforgallery src="sunny.png" alt="Screenshot of Sunny's title slide featuring her package bbsTawain" >}} -{{< figureforgallery src="pascal.png" alt="Slide from Pascal's presentation 'Collaboration with git' featuring his main take-aways: use branches a lot, commit often, write meaningful commit messages, learn how to undo stuff, learn how to rebase, and get familiar with GitHub's Pull Requests" >}} -{{< figureforgallery src="yaoxiang.png" alt="Slide from Yaoxiang's presentation featuring testthat Basics and core features, such as the test_that function, basic expectations like expect_equal, and error and warning testing like expect_error and expect_warning." >}} +{{< figureforgallery src="sunny.png" alt="Screenshot of Sunny's title slide featuring her package bbsTawain" >}} +{{< figureforgallery src="pascal.png" alt="Slide from Pascal's presentation 'Collaboration with git' featuring his main take-aways: use branches a lot, commit often, write meaningful commit messages, learn how to undo stuff, learn how to rebase, and get familiar with GitHub's Pull Requests" >}} +{{< figureforgallery src="yaoxiang.png" alt="Slide from Yaoxiang's presentation featuring testthat Basics and core features, such as the test_that function, basic expectations like expect_equal, and error and warning testing like expect_error and expect_warning." >}} {{< /gallery >}} Sunny recommended that you have a plan for your contributions, but remain flexible as things change or don't proceed as you may have expected.