headR::add_og_card(card_type = "website", title = "Ants are cool", image = "https://www.jumpingrivers.com/rpackages/headr/vignettes/ant.jpg", url = "https://www.jumpingrivers.com/rpackages/headr/vignettes/", description = "Ants evolved from wasp-like ancestors in the Cretaceous period, about 140 million years ago, and diversified after the rise of flowering plants", file = "ants.html")
Ants evolved from wasp-like ancestors in the Cretaceous period, about 140 million years ago, and diversified after the rise of flowering plants
The code to produce html file containing the meta tags in the header is below. To go back to the headR GitHub page.
headR::add_og_card(card_type = "website", title = "Ants are cool", image = "https://www.jumpingrivers.com/rpackages/headr/vignettes/ant.jpg", url = "https://www.jumpingrivers.com/rpackages/headr/vignettes/", description = "Ants evolved from wasp-like ancestors in the Cretaceous period, about 140 million years ago, and diversified after the rise of flowering plants", file = "ants.html")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.