Skip to content

Commit 1592bcf

Browse files
authored
Merge pull request #6 from 42devops/fix/asset-cache-busting
fix: add cache busting query strings to CSS assets
2 parents c9ff0bc + b27c7b3 commit 1592bcf

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎_layouts/default.html‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
7-
<title>{% if page.title %}{{ page.title }} | 42DevOps{% else %}42DevOps - Infrastructure & Engineering Notes{% endif %}</title>
7+
<title>{% if page.title %}{% if page.title contains "42DevOps" %}{{ page.title }}{% else %}{{ page.title }} | 42DevOps{% endif %}{% else %}42DevOps | Infrastructure & Engineering Notes{% endif %}</title>
88
<meta name="description" content="Engineering thoughts on DevOps, Kubernetes, Infrastructure, and Algorithms." />
99
<meta name="author" content="42DevOps" />
1010

@@ -13,10 +13,10 @@
1313
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
1414
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Shantell+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap" rel="stylesheet">
1515

16-
<!-- Stylesheets -->
17-
<link rel="stylesheet" href="/css/neat-annotations.css" type="text/css" />
18-
<link rel="stylesheet" href="/css/syntax.css" type="text/css" />
19-
<link rel="stylesheet" href="/css/screen.css" type="text/css" />
16+
<!-- Stylesheets (with cache-busting timestamp) -->
17+
<link rel="stylesheet" href="/css/neat-annotations.css?v={{ site.time | date: '%s' }}" type="text/css" />
18+
<link rel="stylesheet" href="/css/syntax.css?v={{ site.time | date: '%s' }}" type="text/css" />
19+
<link rel="stylesheet" href="/css/screen.css?v={{ site.time | date: '%s' }}" type="text/css" />
2020

2121
<!-- KaTeX CSS & JS for Math equations -->
2222
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css" crossorigin="anonymous">

0 commit comments

Comments
 (0)