瀏覽代碼

Fix #6 remove automatic dependency on Font Awesome

- Adds no-font-awesome variable to template to turn off remote FA
- FA is added in header as <script defer> for header buttons
- fa_icon() will include the rmarkdown FA dependency
master
Garrick Aden-Buie 7 年之前
父節點
當前提交
6235152a04
共有 2 個檔案被更改,包括 4 行新增 和 4 行删除
  1. +0
    -1
      R/bulma_document.R
  2. +4
    -3
      inst/bulma/bulma.html

+ 0
- 1
R/bulma_document.R 查看文件

@@ -61,7 +61,6 @@ bulma_document <- function(
src = bulma_file("bulma"),
stylesheet = "bulma.min.css"
),
rmarkdown::html_dependency_font_awesome(),
if (toc) htmltools::htmlDependency(
name = "gumshoe",
version = "3.5.1",

+ 4
- 3
inst/bulma/bulma.html 查看文件

@@ -55,9 +55,10 @@ pre, code {
$for(css)$
<link rel="stylesheet" href="$css$" />
$endfor$
<!--
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
-->
$if(no-font-awesome)$
$else$
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
$endif$
$for(header-includes)$
$header-includes$
$endfor$

Loading…
取消
儲存