fix(fork_awesome): fix incompatibility of Fork Awesome and Font Awesome

This commit is contained in:
Dillon
2020-02-08 17:28:02 +08:00
parent 41e6074a5e
commit a2543e673d
21 changed files with 2045 additions and 23 deletions

View File

@@ -64,12 +64,9 @@
{{- end -}}
{{- /* Fork Awesome https://forkaweso.me/ */ -}}
{{- if eq (getenv "HUGO_ENV") "production" | and .Site.Params.cdn.forkawesome_css -}}
{{- .Site.Params.cdn.forkawesome_css | safeHTML -}}
{{- else -}}
{{- $res := resources.Get "css/lib/forkawesome/fork-awesome.min.css" -}}
<link rel="stylesheet" href="{{ $res.RelPermalink }}">
{{- end -}}
{{- $options := dict "targetPath" "css/lib/forkawesome/forkawesome.min.css" "outputStyle" "compressed" "enableSourceMap" true -}}
{{- $res := resources.Get "css/lib/forkawesome/fork-awesome.scss"| toCSS $options -}}
<link rel="stylesheet" href="{{ $res.RelPermalink }}">
{{- /* Animate.css https://github.com/daneden/animate.css */ -}}
{{- if eq (getenv "HUGO_ENV") "production" | and .Site.Params.cdn.animate_css -}}