diff options
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/head.html | 5 |
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 }} |