Przeglądaj źródła

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 lat temu
rodzic
commit
6235152a04
2 zmienionych plików z 4 dodań i 4 usunięć
  1. +0
    -1
      R/bulma_document.R
  2. +4
    -3
      inst/bulma/bulma.html

+ 0
- 1
R/bulma_document.R Wyświetl plik

src = bulma_file("bulma"), src = bulma_file("bulma"),
stylesheet = "bulma.min.css" stylesheet = "bulma.min.css"
), ),
rmarkdown::html_dependency_font_awesome(),
if (toc) htmltools::htmlDependency( if (toc) htmltools::htmlDependency(
name = "gumshoe", name = "gumshoe",
version = "3.5.1", version = "3.5.1",

+ 4
- 3
inst/bulma/bulma.html Wyświetl plik

$for(css)$ $for(css)$
<link rel="stylesheet" href="$css$" /> <link rel="stylesheet" href="$css$" />
$endfor$ $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)$ $for(header-includes)$
$header-includes$ $header-includes$
$endfor$ $endfor$

Ładowanie…
Anuluj
Zapisz