add_og_card | R Documentation |
An easy way to create open graph meta tags for your blogdown post. For more details on the meta tags see http://ogp.me/
add_og_card(card_type = c("website", "article", "book"), title, image, url, description = NULL, image_alt = NULL, site_name = NULL, video = NULL, audio = NULL, author = NULL, file = "og_card.html")
card_type |
Required. Open graph card type. See http://ogp.me/#types for list |
title |
Required. Title for card content. |
image |
Required. Link for the content image. |
url |
Required. Canonical URl to be used as permanent ID in the graph. |
description |
Description for card content. One to two sentences. |
image_alt |
Alternate text to display if image fails. |
site_name |
If your object is part of a larger web site, the name which should be displayed for the overall site. |
video |
URL to a video file that complements the object |
audio |
URL to an audio file that complements the object |
author |
Authors of the content if content type is "article" or "book" |
file |
Required. File name to put in the header of Rmd doc, must be .html. |
add_og_card(title = "HeadR is great!", image = "https://www.rstudio.com/wp-content/uploads/2014/06/RStudio-Ball.png", url = "https://www.jumpingrivers.com", file = "hello.html")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.