From 3b1efd8c13f6aa534f95892af76b488c450703ab Mon Sep 17 00:00:00 2001 From: danielkvist Date: Mon, 1 Jul 2019 22:08:15 +0200 Subject: update Font Awesome config --- README.md | 3 +-- exampleSite/config.toml | 3 +-- layouts/partials/fontawesome.html | 12 +++++------- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 374dd3c..86563b9 100644 --- a/README.md +++ b/README.md @@ -178,8 +178,7 @@ logo = "" # Relative URL for your logo ```toml [params.fa] disable = false # Disables or enables Font Awesome (by default is enabled) - version = "" # Font Awesome version - integrity = "" # Font Awesome integrity for the Font Awesome script + kit = "" # Your Font Awesome kit's code ``` ### Contact form diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 41ebf73..f8389f3 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -76,8 +76,7 @@ themesDir = "../.." [params.fa] disable = false - version = "5.8.1" - integrity = "sha384-g5uSoOSBd7KkhAMlnQILrecXvzst9TdC09/VM+pjDTCM+1il8RHz5fKANTFFb+gQ" + kit = "" [params.form] show = true diff --git a/layouts/partials/fontawesome.html b/layouts/partials/fontawesome.html index cc963bb..d5dabfe 100644 --- a/layouts/partials/fontawesome.html +++ b/layouts/partials/fontawesome.html @@ -1,11 +1,9 @@ -{{ $version := "5.8.1" }} -{{ $integrity := "sha384-g5uSoOSBd7KkhAMlnQILrecXvzst9TdC09/VM+pjDTCM+1il8RHz5fKANTFFb+gQ" }} +{{ $kit := "" }} -{{ if and $.Site.Params.fa.version $.Site.Params.fa.integrity }} -{{ $version = $.Site.Params.fa.version }} -{{ $integrity = $.Site.Params.fa.integrity }} +{{ if and $.Site.Params.fa.kit}} +{{ $kit = $.Site.Params.fa.kit }} {{ end }} -{{ $src := printf "%s%s%s" "https://use.fontawesome.com/releases/v" $version "/js/all.js" }} +{{ $src := printf "%s" $kit}} - \ No newline at end of file + \ No newline at end of file -- cgit v1.2.3