Creating a listing page that includes revealjs and xaringan slide decks #1840
-
Hello! I'd like to create a listing page with a grid layout that lists all of the slide decks in the directory, with one card corresponding to each slide deck. If the slide deck being featured on the listing page is a revealjs deck from a After a lot trial and error, I came up with a workaround that gets me about 95% of the way but I'm having trouble populating the xaringan listing cards with all of the necessary fields. Below is a screenshot of a minimal working example where the card for the revealjs deck looks fine but the one for the xaringan deck is missing the title field: These are the steps that got me to this point:
So far so good except the listing page ignores the title field that I've provided in Any suggestions would be greatly appreciated -- thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Interesting workflow! I'll take a look 😏 I would add something to generate the "featured" image using something like below:
|
Beta Was this translation helpful? Give feedback.
-
I was able to get this minimal example working as follows:
title: "Presentation Ninja"
author: "Yihui Xie"
date: "2016/12/12 (updated: `r Sys.Date()`)"
image: /02-xaringan/featured.png
path: /02-xaringan/index.html
listing:
contents:
- "*/index.qmd"
- "02-xaringan/metadata.yml" This is a cool test case, hope this gets you going! |
Beta Was this translation helpful? Give feedback.
-
Many thanks @dragonstyle and @mcanouil for your help! My listing page is now finished (though the styling is a WIP): |
Beta Was this translation helpful? Give feedback.
I was able to get this minimal example working as follows:
In
02-xaringan
, rename_metadata.yml
tometadata.yml
. The underscore metadata files are typically used when you'd like metadata merged when rendering items in that folder / subfolders.In
metadata.yml
, update to:yml
file rather than the HTML file:This is a cool test case, hope this gets you going!