发布于 2018-07-19 04:36:10
为了获得收藏夹图标,您必须在呈现的文档的<head>
元素中插入以下HTML
元素:
<link rel="shortcut icon" href="link_to_your_favicon.png">
有许多方法可以实现这一目标。
我建议使用includes
选项。
例如,将以下行保存在名为favicon.html
的文件中
<link rel="shortcut icon" href="https://www.r-project.org/favicon-32x32.png">
如果呈现以下Rmd
文档,您将获得一个带有R项目图标的HTML
文件:
---
title: "Favicon"
output:
html_document:
includes:
in_header: "favicon.html"
---
A document with a favicon
https://stackoverflow.com/questions/51404400
复制相似问题