Is it possible to create a shortcode, ie. {{< card "Post Title" >}}
or {{< card "post-title" >}}
referring a specific post/page bundle but also output some of the data set via frontmatter? I’ve tried searching around but haven’t been able to find anything – would appriciate any help or nudge in the right direction. Closest thing was scripter.co/titleref-referencing-hugo-posts-by-their-titles, but I haven’t been able to modify the code and get any of the frontmatter showing.
Goal: Output a visual card using a shortcode within my markdown content, featuring a specific post/page bundle on the site, that also output related frontmatter data within the card (ie. categories, date etc.). Not to be confused with a ‘Similar posts’ section, as I would like to specify the specific post within the shortcode.