blogcard shortcode

Published

September 14, 2024

Blogcard Extension For Quarto

The blogcard shortcode makes it easy to create a card-like link.

blogcard shortcode – blogcard

blogcard shortcode, a quarto shortcode extension, makes easy to produce a card-like link.

https://t-arae.quarto.pub/blogcard/

The version of Quarto built-in Pandoc and Lua:

quarto pandoc --version 2>&1 | head -3
pandoc 3.2
Features: +server +lua
Scripting engine: Lua 5.4

Instalation

To use the blogcard extension in your Quarto project, run this command in the terminal from the project’s working directory. This will install the extension under the _extensions subdirectory.

quarto add t-arae/blogcard

Then, apply the blogcard filter by adding the following lines to the YAML header of your .qmd file.

filters:
  - t-arae/blogcard

Using

To create a card using the blogcard shortcode, write the shortcode directive like this:

{{< blogcard https://quarto.org >}}

Example

Here is the source code for a minimal example: example.qmd.

The rendered version is available here.