diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 691bbd6..126d44b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ on: branches: main -name: Render-Book-from-main +name: Render-book-from-main jobs: quarto: @@ -12,6 +12,8 @@ jobs: steps: - uses: actions/checkout@v2 - uses: quarto-dev/quarto-actions/setup@v2 + with: + version: pre-release - uses: r-lib/actions/setup-r@v2 - uses: r-lib/actions/setup-pandoc@v2 - uses: r-lib/actions/setup-r-dependencies@v2 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 24a4041..8008619 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -13,8 +13,10 @@ jobs: - uses: actions/checkout@v2 - + - uses: quarto-dev/quarto-actions/setup@v2 + with: + version: pre-release - uses: r-lib/actions/setup-r@v2 diff --git a/authortechnical.Rmd b/authortechnical.Rmd index 5ba4166..db64072 100644 --- a/authortechnical.Rmd +++ b/authortechnical.Rmd @@ -253,6 +253,23 @@ knitr::include_graphics("images/imgtxt.png") <!\-\-/html_preserve\-\-> +**Image gallery** + +If you want to display images in a nice gallery, where clicking on an image makes it appear much larger, + +1. In the post YAML metadata add `photogallery: yes`. +1. In the post add each gallery like so: + +```md +{{{< gallery >}}} +{{{< figureforgallery src="search2.png" alt="Screenshot of r-universe simple search results." >}}} +{{{< figureforgallery src="search3.png" alt="Screenshot of r-universe advanced search query." >}}} +{{{< figureforgallery src="search4.png" alt="Screenshot of r-universe advanced search results." >}}} +{{{< /gallery >}}} +``` + +[Example post](https://ropensci.org/blog/2023/02/27/runiverse-discovering/), [source](https://github.com/ropensci/roweb3/blob/main/content/blog/2023-02-27-runiverse-discovering/index.md). + ### Images - Rmd-created {#addfigure} **File location**