Skip to content

Commit

Permalink
fix(site): trying to fix styles in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Vheissu committed Dec 15, 2024
1 parent 88c20a0 commit 81458b2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions themes/aurelia-theme/layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -18,12 +18,14 @@
{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}

{{ $css := resources.Get "css/main.css" | css.TailwindCSS }}
{{ $styles := resources.Get "css/main.css" }}
{{ $styles = $styles | css.TailwindCSS }}

{{ if hugo.IsProduction }}
{{ $css = $css | minify | fingerprint }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.Integrity }}" crossorigin="anonymous">
{{ $styles = $styles | minify | fingerprint "sha512" }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous">
{{ else }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
<link rel="stylesheet" href="{{ $styles.RelPermalink }}">
{{ end }}

<script src="https://kit.fontawesome.com/ba181c6190.js" crossorigin="anonymous"></script>

0 comments on commit 81458b2

Please sign in to comment.