Skip to content

Commit 9777f83

Browse files
committed
Add a cache-busting hash to stylesheet.
1 parent 50914eb commit 9777f83

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

layouts/partials/footer.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,5 @@
22
<footer class="footer">
33
<a href="https://zerodha.com">Zerodha</a> &copy; {{ time.Now | time.Format "2006" }} All rights reserved.
44
</footer>
5-
{{ if not .Site.IsServer }}
6-
{{ template "_internal/google_analytics_async.html" . }}
7-
{{ end }}
85
</body>
96
</html>

layouts/partials/header.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4+
{{ $seed := now.Unix }}
5+
{{ $rand := mod (add (mul 13 $seed) 97) 400000}}
6+
47
{{- $title := ( .Title ) -}}
58
{{- $siteTitle := ( .Site.Title ) -}}
69
{{- if .IsHome -}}
@@ -60,7 +63,7 @@
6063
</script>
6164

6265
<link href="https://fonts.googleapis.com/css?family=Inter:300,400,500,600" rel="stylesheet">
63-
<link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}/static/style.css" />
66+
<link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}/static/style.css?v={{ $rand }}" />
6467
</head>
6568
<body>
6669
{{ .Site.Params.paginate }}

0 commit comments

Comments
 (0)