我想在导航栏标题字段部分添加自定义 Logo 。我尝试添加一个 html 脚本并且它起作用了,但是 Logo 图像并没有很好地适合导航栏 - Logo 被边距推开,菜单文本与 Logo 重叠,等等。
name: "my-website"
output_dir: .
navbar:
title: "I want to add custom logo here"
left:
- text: "Home"
最佳答案
好吧,我自己弄了一个网站。这对我有用:
name: "my-website"
navbar:
title: "<img id=\"logo\" style=\"width: 30px;\" src=\"dog.gif\" />"
left:
- text: "Home"
href: index.html
- text: "About"
href: about.html
关于html - 如何在 rmarkdown 的导航栏标题字段中添加自定义 Logo ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44204702/