mirror of
https://github.com/caddyserver/website.git
synced 2025-04-24 05:56:15 -04:00
Re-add cache busting
Fix docs
This commit is contained in:
parent
09b9c74bfc
commit
5e93103dce
8 changed files with 46 additions and 31 deletions
|
@ -2,15 +2,16 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Caddy Documentation</title>
|
||||
{{include "/includes/head.html"}}
|
||||
<link rel="stylesheet" href="/resources/css/docs.css">
|
||||
<link rel="stylesheet" href="/resources/css/docs-home.css">
|
||||
{{import "/includes/head.html"}}
|
||||
{{template "head"}}
|
||||
<link rel="stylesheet" href="/resources/css/docs.css{{template "cacheBust"}}">
|
||||
<link rel="stylesheet" href="/resources/css/docs-home.css{{template "cacheBust"}}">
|
||||
<!-- <meta property="og:title" content="Caddy 2 - The Ultimate Server with Automatic HTTPS">
|
||||
<meta name="twitter:title" value="Caddy 2 - The Ultimate Server with Automatic HTTPS"> -->
|
||||
|
||||
<script src="/resources/js/vendor/marked.min.js"></script>
|
||||
<script src="/resources/js/docs.js"></script>
|
||||
<script src="/resources/js/docs-home.js"></script>
|
||||
<script src="/resources/js/vendor/marked.min.js{{template "cacheBust"}}"></script>
|
||||
<script src="/resources/js/docs.js{{template "cacheBust"}}"></script>
|
||||
<script src="/resources/js/docs-home.js{{template "cacheBust"}}"></script>
|
||||
</head>
|
||||
<body>
|
||||
{{include "/includes/header.html" ""}}
|
||||
|
@ -181,4 +182,4 @@
|
|||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -2,8 +2,9 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Download Caddy</title>
|
||||
{{include "/includes/head.html"}}
|
||||
<link rel="stylesheet" href="/resources/css/download.css">
|
||||
{{import "/includes/head.html"}}
|
||||
{{template "head"}}
|
||||
<link rel="stylesheet" href="/resources/css/download.css{{template "cacheBust"}}">
|
||||
</head>
|
||||
<body>
|
||||
<div class="hero">
|
||||
|
@ -21,4 +22,4 @@
|
|||
|
||||
{{include "/includes/footer.html"}}
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>All features of the Caddy Web Server</title>
|
||||
{{include "/includes/head.html"}}
|
||||
<link rel="stylesheet" href="/resources/css/marketing.css">
|
||||
<link rel="stylesheet" href="/resources/css/features.css">
|
||||
{{import "/includes/head.html"}}
|
||||
{{template "head"}}
|
||||
<link rel="stylesheet" href="/resources/css/marketing.css{{template "cacheBust"}}">
|
||||
<link rel="stylesheet" href="/resources/css/features.css{{template "cacheBust"}}">
|
||||
</head>
|
||||
<body>
|
||||
<div class="hero">
|
||||
|
@ -1722,4 +1723,4 @@
|
|||
|
||||
{{include "/includes/footer.html"}}
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
{{define "cacheBust" -}}
|
||||
{{- if fileExists "/.commit-hash" -}}
|
||||
{{- $commitHash := (include "/.commit-hash") -}}
|
||||
{{- trim (printf "?v=%v" $commitHash) -}}
|
||||
{{- end -}}
|
||||
{{- end}}
|
||||
|
||||
{{define "head"}}
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
|
@ -46,5 +54,7 @@
|
|||
</script> -->
|
||||
|
||||
<!-- Alpine.js to augment markdown docs -->
|
||||
<!-- <script src="https://cdn.jsdelivr.net/npm/@alpinejs/persist@3.x.x/dist/cdn.min.js" defer></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js" defer></script> -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/@alpinejs/persist@3.x.x/dist/cdn.min.js" defer></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js" defer></script>
|
||||
|
||||
{{end}}
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Caddy - The Ultimate Server with Automatic HTTPS</title>
|
||||
{{include "/includes/head.html"}}
|
||||
{{import "/includes/head.html"}}
|
||||
{{template "head"}}
|
||||
<link rel="stylesheet" href="/resources/css/vendor/asciinema-player-3.6.1.css{{template "cacheBust"}}">
|
||||
<script src="/resources/js/vendor/asciinema-player-3.6.1.min.js{{template "cacheBust"}}"></script>
|
||||
<script src="/resources/js/home.js{{template "cacheBust"}}"></script>
|
||||
|
||||
<link rel="stylesheet" href="/resources/css/vendor/asciinema-player-3.6.1.css">
|
||||
<script src="/resources/js/vendor/asciinema-player-3.6.1.min.js"></script>
|
||||
<script src="/resources/js/home.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="/resources/css/marketing.css">
|
||||
<link rel="stylesheet" href="/resources/css/home.css">
|
||||
<link rel="stylesheet" href="/resources/css/marketing.css{{template "cacheBust"}}">
|
||||
<link rel="stylesheet" href="/resources/css/home.css{{template "cacheBust"}}">
|
||||
|
||||
<!-- <meta property="og:title" content="Caddy 2 - The Ultimate Server with Automatic HTTPS">
|
||||
<meta name="twitter:title" value="Caddy 2 - The Ultimate Server with Automatic HTTPS"> -->
|
||||
|
@ -821,4 +821,4 @@ reverse_proxy /api/* localhost:9002</code>
|
|||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Sponsor the Caddy Project</title>
|
||||
{{include "/includes/head.html"}}
|
||||
<link rel="stylesheet" href="/resources/css/marketing.css">
|
||||
<link rel="stylesheet" href="/resources/css/sponsor.css">
|
||||
{{import "/includes/head.html"}}
|
||||
{{template "head"}}
|
||||
<link rel="stylesheet" href="/resources/css/marketing.css{{template "cacheBust"}}">
|
||||
<link rel="stylesheet" href="/resources/css/sponsor.css{{template "cacheBust"}}">
|
||||
</head>
|
||||
<body>
|
||||
<div class="hero">
|
||||
|
@ -676,4 +677,4 @@ cardsContainer.addEventListener("pointermove", applyOverlayMask);
|
|||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue