The article()
function is used exclusively within block_articles()
,
and having one, two, or three calls will arrange the articles in a row (or as
a column of articles at lower screen widths).
article(image = NULL, title = NULL, content = NULL, link = NULL)
# We can define an article with a link
# to an image, title text, some content,
# and a link to relevant content
article <-
article(
image = "https://i.imgur.com/dxSXzGb.jpg",
title = "Hong Kong",
content =
"Once home to fishermen and farmers, \\
modern Hong Kong is a teeming, \\
commercially-vibrant metropolis where \\
Chinese and Western influences fuse.",
link = "http://www.discoverhongkong.com"
)
if (interactive()) article