knitr::opts_chunk$set(echo = FALSE) library(fontawesome)
Edit the yml file to change the site navigation bar
name: "my-website" navbar: title: "My Website" left: - text: "Home" href: index.html - text: "About" href: about.html
index.Rmd
is the home page, edit it by changing the text in the .Rmdabout.Rmd
is a sample about page. There are several R markdown website generators that offer more bells and whistles.
They have a similar general structure to the basic R website:
https://rstudio.github.io/distill/website.html
https://bookdown.org/yihui/blogdown/
https://www.apreshill.com/blog/2020-12-new-year-new-blogdown/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.