Use Font Awesome instead of Fork Awesome

This commit is contained in:
Harm te Molder 2024-10-24 08:31:24 +02:00 committed by zjedi
parent b88d13e7f0
commit d326aa747e
130 changed files with 375 additions and 6712 deletions

View file

@ -13,10 +13,9 @@
{{ $scriptJquery := resources.Get "js/jquery-3.6.3.min.js" }}
<!-- The main JavaScript files for HugoScroll -->
{{ $scriptIcons := resources.Get "js/icons.js" }}
{{ $scriptIndex := resources.Get "js/index.js" }}
{{ $scriptPolyfill := resources.Get "js/css-vars-ponyfill.min.js" }}
{{ $js := slice $scriptJquery $scriptIcons $scriptIndex $scriptPolyfill | resources.Concat "js/script.js" | resources.Minify | resources.Fingerprint }}
{{ $js := slice $scriptJquery $scriptIndex $scriptPolyfill | resources.Concat "js/script.js" | resources.Minify | resources.Fingerprint }}
<script src="{{ $js.RelPermalink }}" integrity="{{ $js.Data.Integrity }}" ></script>

View file

@ -14,7 +14,7 @@
{{- with $img.Resize ( printf "%dx%d %s" $img.Width $img.Height $image_options ) -}}
#site-head.withCenteredImage {
background-image: url('{{- .RelPermalink -}}');
}
}
{{- end -}}
/*

View file

@ -25,13 +25,15 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
{{ $stylesheetNormalize := resources.Get "css/normalize.css" }}
{{ $stylesheetFA := resources.Get "css/fork-awesome.css" }}
{{ $stylesheetFA := resources.Get "css/fontawesome/fontawesome.min.css" }}
{{ $stylesheetFABrands := resources.Get "css/fontawesome/brands.min.css" }}
{{ $stylesheetFASolid := resources.Get "css/fontawesome/solid.min.css" }}
{{ $stylesheetFonts := resources.Get "css/fonts.css" }}
{{ $stylesheetGeneric := resources.Get "css/generic.css" }}
{{ $stylesheetScreen := ( resources.Get "css/_index.scss" | css.Sass ) }}
{{ $stylesheet := slice $stylesheetNormalize $stylesheetFA $stylesheetFonts $stylesheetGeneric $stylesheetScreen | resources.Concat "css/style.css" | resources.Minify | resources.Fingerprint }}
{{ $stylesheet := slice $stylesheetNormalize $stylesheetFA $stylesheetFABrands $stylesheetFASolid $stylesheetFonts $stylesheetGeneric $stylesheetScreen | resources.Concat "css/style.css" | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $stylesheet.RelPermalink }}" type="text/css" integrity="{{ $stylesheet.Data.Integrity }}" />
{{ template "_internal/opengraph.html" . }}

View file

@ -1 +1,5 @@
{{ with .Get "class" }}<i class="{{ . }}"></i>{{ end }}
{{ if .Get "brand" }}
{{ with .Get "name" }}<i class="fa-brands fa-{{ . }}"></i>{{ end }}
{{ else }}
{{ with .Get "name" }}<i class="fa fa-{{ . }}"></i>{{ end }}
{{ end }}