aboutsummaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-09-06 18:03:23 +0200
committerOscar Najera <hi@oscarnajera.com>2023-09-06 18:03:23 +0200
commit3f901f09c7be956e5ccee99a6202d51ca361193d (patch)
tree0e857e434fbd5d045f180c5b0d40434a38d32193 /layouts
parentf46e4e60d95850d1761fff0e8e1ab35332eb3cb2 (diff)
downloadhugo-minimalist-theme-3f901f09c7be956e5ccee99a6202d51ca361193d.tar.gz
hugo-minimalist-theme-3f901f09c7be956e5ccee99a6202d51ca361193d.tar.bz2
hugo-minimalist-theme-3f901f09c7be956e5ccee99a6202d51ca361193d.zip
update tachyons usage
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/head.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 8a87f41..2cd7196 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -2,8 +2,9 @@
<meta charset="utf-8">
<link rel="icon" href="/images/favicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1">
- {{ $styles := resources.Get "scss/style.scss" | resources.ToCSS | resources.Minify }}
- <link rel="stylesheet" href="{{ $styles.Permalink }}" type="text/css" media="screen" />
+ {{ with resources.Get "scss/style.scss" | resources.ToCSS (dict "includePaths" (slice "node_modules") "targetPath" "static/css/style.css") | resources.Minify | fingerprint }}
+ <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" type="text/css" media="screen" />
+ {{ end }}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" integrity="sha512-9usAa10IRO0HhonpyAIVpjrylPvoDwiPUiKdWk5t3PyolY1cOd4DSE0Ga+ri4AuTroPR5aQvXU9xC6qOPnzFeg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
{{ $title := print .Site.Title " | " .Title }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}