Regroup all static resources into the same folder (favicon and css)

This commit is contained in:
Julien Dessaux 2021-07-24 23:33:43 +02:00
parent 36bd711d4f
commit f9c9c23cdd
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="/static/favicon.ico">
{{ template "_internal/opengraph.html" . }}
@ -13,7 +14,7 @@
{{- $home := resources.Get "home.css" -}}
{{- $pagination := resources.Get "pagination.css" -}}
{{- $footer := resources.Get "footer.css" -}}
{{- $allCss := slice $base $header $home $pagination $footer | resources.Concat "css/all.css" | fingerprint | minify -}}
{{- $allCss := slice $base $header $home $pagination $footer | resources.Concat "static/all.css" | fingerprint | minify -}}
<link rel="stylesheet" href="{{ $allCss.Permalink }}">
{{ range .AlternativeOutputFormats -}}

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB