switched from CSS to JavaScript for loading Font Awesome

This commit is contained in:
NaNkeen 2018-05-29 11:42:55 +08:00
parent c3e002418a
commit 65ebc7ece8

View file

@ -19,7 +19,7 @@
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/poole.css"> <link rel="stylesheet" href="{{ .Site.BaseURL }}css/poole.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/hyde.css"> <link rel="stylesheet" href="{{ .Site.BaseURL }}css/hyde.css">
{{ "<!-- Font-Awesome -->" | safeHTML }} {{ "<!-- Font-Awesome -->" | safeHTML }}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous"> <script defer src="https://use.fontawesome.com/releases/v5.0.13/js/all.js" integrity="sha384-xymdQtn1n3lH2wcu0qhcdaOpQwyoarkgLVxC/wZ5q7h9gHtxICrpcaSUfygqZGOe" crossorigin="anonymous"></script>
{{ if .Site.Params.highlightjs -}} {{ if .Site.Params.highlightjs -}}
{{ "<!-- highlight.js-->" | safeHTML }} {{ "<!-- highlight.js-->" | safeHTML }}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/{{ .Site.Params.highlightjsstyle | default "default" }}.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/{{ .Site.Params.highlightjsstyle | default "default" }}.min.css">