Reads the _site.yml to render the _navbar.html and replaces the navbar title by the branding logos.
1 2 | create_navbar(site_yml = file.path("site", "site.yml"), logo_img,
show_title = FALSE, relative_to = NULL)
|
site_yml |
path to the '_site.yml' file. |
logo_img |
vector containing the path to the logo file(s). |
show_title |
boolean. If 'TRUE', the title will be shown next to the logo. |
relative_to |
relative path where main site files are located ('file.path(path, yaml_link)'): _e.g._ if navbar is used in a subfolder, adjust path to "..". |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.