mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36:41 +02:00
Add CSS cache buster
This commit is contained in:
@@ -1,11 +1,25 @@
|
|||||||
<!-- CSS -->
|
<!-- CSS -->
|
||||||
|
|
||||||
|
{{ if eq true .Site.Params.CacheBuster }}
|
||||||
|
|
||||||
<link rel="stylesheet" href="/css/reset.css">
|
<link rel="stylesheet" href="/css/reset.css">
|
||||||
<link rel="stylesheet" href="/css/pygments.css">
|
<link rel="stylesheet" href="/css/pygments.css">
|
||||||
<link rel="stylesheet" href="/css/main.css">
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
{{ if .Site.Params.WebfontsFile }}
|
{{ if .Site.Params.WebfontsFile }}
|
||||||
<link rel="stylesheet" href="/{{ .Site.Params.WebfontsFile }}">
|
<link rel="stylesheet" href="/{{ .Site.Params.WebfontsFile }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ else }}
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/reset.css?{{ .Now.Unix }}">
|
||||||
|
<link rel="stylesheet" href="/css/pygments.css?{{ .Now.Unix }}">
|
||||||
|
<link rel="stylesheet" href="/css/main.css?{{ .Now.Unix }}">
|
||||||
|
{{ if .Site.Params.WebfontsFile }}
|
||||||
|
<link rel="stylesheet" href="/{{ .Site.Params.WebfontsFile }}?{{ .Now.Unix }}">
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<!-- Icon -->
|
<!-- Icon -->
|
||||||
<link rel="shortcut icon"
|
<link rel="shortcut icon"
|
||||||
{{ if .Site.Params.FaviconFile }}
|
{{ if .Site.Params.FaviconFile }}
|
||||||
|
Reference in New Issue
Block a user