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 d0affc1537..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" --- @@ -114,7 +115,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" >}} 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. 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 }} +

+ 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 }}