commit a2bb1ece7b8ed44ce10efe31eee92aa33ba89188
parent 577f2030b33e52e19f3d3d99fd7a028a040758e7
Author: Martin Kloeckner <mjkloeckner@gmail.com>
Date: Wed, 20 Nov 2024 17:47:08 -0300
append query strings to js/css files to force reload them
Diffstat:
4 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/blog.html b/blog.html
@@ -9,8 +9,8 @@
<body>
<!--#include virtual="/common/header.shtml" -->
<article>
- <link rel='stylesheet' type='text/css' href="/css/article.css">
- <link rel='stylesheet' type='text/css' href="/css/blog.css">
+ <link rel='stylesheet' type='text/css' href="/css/article.css?ver=0.1">
+ <link rel='stylesheet' type='text/css' href="/css/blog.css?ver=0.1">
<h1 id="blog-title">Blog</h1>
<div id="blog_entries">
<!--#include virtual="/common/blog_index.shtml" -->
diff --git a/common/header.shtml b/common/header.shtml
@@ -14,7 +14,7 @@
<svg id="color-scheme-button-dark" xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px"><path d="M480-360q50 0 85-35t35-85q0-50-35-85t-85-35q-50 0-85 35t-35 85q0 50 35 85t85 35Zm0 80q-83 0-141.5-58.5T280-480q0-83 58.5-141.5T480-680q83 0 141.5 58.5T680-480q0 83-58.5 141.5T480-280ZM200-440H40v-80h160v80Zm720 0H760v-80h160v80ZM440-760v-160h80v160h-80Zm0 720v-160h80v160h-80ZM256-650l-101-97 57-59 96 100-52 56Zm492 496-97-101 53-55 101 97-57 59Zm-98-550 97-101 59 57-100 96-56-52ZM154-212l101-97 55 53-97 101-59-57Zm326-268Z"/></svg><svg id="color-scheme-button-light" xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px"><path d="M480-120q-150 0-255-105T120-480q0-150 105-255t255-105q14 0 27.5 1t26.5 3q-41 29-65.5 75.5T444-660q0 90 63 153t153 63q55 0 101-24.5t75-65.5q2 13 3 26.5t1 27.5q0 150-105 255T480-120Zm0-80q88 0 158-48.5T740-375q-20 5-40 8t-40 3q-123 0-209.5-86.5T364-660q0-20 3-40t8-40q-78 32-126.5 102T200-480q0 116 82 198t198 82Zm-10-270Z"/></svg>
</a>
</div>
- <script type="text/javascript" src="/scripts/js/color-scheme-toggle.js"></script>
+ <script type="text/javascript" src="/scripts/js/color-scheme-toggle.js?ver=0.1"></script>
</header>
<hr class="header_bottom_bar">
diff --git a/index.html b/index.html
@@ -40,7 +40,7 @@
<p id=see-all-blog-entries>See all <a href="/blog">blog entries</a></p>
</div>
- <script src="/scripts/js/count-blog-posts.js" defer> </script>
+ <script src="/scripts/js/count-blog-posts.js?ver=0.1" defer> </script>
<hr class="article_bottom_bar">
</article>
diff --git a/scripts/js/count-blog-posts.js b/scripts/js/count-blog-posts.js
@@ -11,4 +11,3 @@ fetch('/common/blog_index.shtml')
var count = doc.getElementById("blog-index-table").rows.length;
content.innerHTML += " (" + count + ")";
})
-