Explorar el Código

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 hace 7 años
padre
commit
6235152a04
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. +0
    -1
      R/bulma_document.R
  2. +4
    -3
      inst/bulma/bulma.html

+ 0
- 1
R/bulma_document.R Ver fichero

@@ -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 Ver fichero

@@ -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$

Cargando…
Cancelar
Guardar