Skip to content

Commit

Permalink
fix(header): clean up css includes and logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Vheissu committed Dec 16, 2024
1 parent c12e991 commit 203c5c9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
10 changes: 0 additions & 10 deletions themes/aurelia-theme/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,4 @@
{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}

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

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

<script src="https://kit.fontawesome.com/ba181c6190.js" crossorigin="anonymous"></script>
18 changes: 9 additions & 9 deletions themes/aurelia-theme/layouts/partials/head/css.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{{- with resources.Get "css/main.css" }}
{{- if eq hugo.Environment "development" }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{- else }}
{{- with . | minify | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{- end }}
{{- end }}
{{- end }}
{{ $styles := resources.Get "css/main.css" }}
{{ $styles = $styles | css.TailwindCSS }}

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

0 comments on commit 203c5c9

Please sign in to comment.