I am currently setting up a distill
blog site and have a need to link directly to non-post endpoints. However, I would still like these "articles" to show up in my listing page. Imagine I have an "article" that links directly to a web page (e.g. community.rstudio.com) or to a shiny application.
Why would I want to do this?
I would still like to leverage all the metadata to populate on article/posts listing page -- I get the description, publish date, author, preview image, and categories/tagging.
For example, say I have a shiny app that uses the tidyverse
and is about forecasting
-- our YAML might look like this:
---
title: "Tidyverse Forecasting App"
description: |
This is a shiny application that covers forecasting time series.
author:
- name: Jason Aizkalns
date: 11-01-2021
output:
distill::distill_article:
self_contained: false
categories:
- tidyverse
- forecasting
---
As a result, this shows up in the listing page, but also the category listing pages for tidyverse
and forecasting
(nice!). However, I don't need an "actual post" when someone clicks on this article. I just need them to launch or redirect immediately to the shiny application.
Can I do this somehow in the YAML? Or some other method?
Even better if I can set it to open in a new tab like (<a href="" target = "_blank"></a>
).
+++
NOTE: I am not interested in embedding via an iframe or knitr::include_url
or htmltools::includeHTML
. I would really like to just "go" to the page. Think a gallery of shiny apps or existing applications / HTML documents, maybe bookdown documents (kind of like a catalog, discovery page, feels similar to connectwidgets).
+++