A simple RMarkdown website has a navigation bar, defined in
_site.yml . The YAML bit looks like this:
navbar: title: "My Website" left: - text: "Home" href: index.html - text: "About" href: about.html
When you render a new .rmd or .md file in the website's Rproj directory, the website's navbar is automatically added to the resulting HTML.
But sometimes I've got an HTML page I'd like to add to the website, which has already been rendered elsewhere. For various reasons, it may not be feasible to re-render the .Rmd file in the website project.
Is there a good way to include the website's navbar in an HTML file that I've copy/pasted into the website directory?