commit d96e193c9d3f75d63a4d09f0d2ed25ddfc8fbdb5
parent f9bd7c83e5e8146584ef104b18fa49210bc6fea7
Author: mjkloeckner <martinjkloeckner@gmail.com>
Date: Sun, 18 Feb 2024 00:01:52 -0300
Move main style linking to `head.shtml` on all html files
Also add a query string when linking to `style.css` so when a big update
on the stylesheet is issued by changing the query string all browsers
accessing the page will need to pull the "new stylesheet".
The query string is a number representing the version of the stylesheet
which will be bump arbitrary
Diffstat:
5 files changed, 11 insertions(+), 33 deletions(-)
diff --git a/about.html b/about.html
@@ -4,16 +4,8 @@
<head>
<title>About | Martin Klöckner's Webpage</title>
- <!-- <link rel="preload" href="/fonts/Futura/FuturaBT-Medium.woff" as="font" type="font/woff" crossorigin="anonymous"> -->
- <!-- <link rel="preload" href="/fonts/Futura/FuturaBT-Medium.woff2" as="font" type="font/woff2" crossorigin="anonymous"> -->
- <!-- <link rel="preload" href="/fonts/Futura/FuturaBT-Medium.ttf" as="font" type="font/ttf" crossorigin="anonymous"> -->
-
<!--#include virtual="/common/head.shtml" -->
-
- <link rel='stylesheet' type='text/css' href="/css/style.css">
<link rel='stylesheet' type='text/css' href="/css/about_style.css">
- <link rel="icon" href="/favicon.png">
- <meta charset="utf-8"/>
</head>
<body>
diff --git a/blog.html b/blog.html
@@ -3,18 +3,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<title>Blog | Martin Klöckner's Webpage</title>
-
- <!-- <link rel="preload" href="/fonts/Futura/FuturaBT-Medium.woff" as="font" type="font/woff" crossorigin="anonymous"> -->
- <link rel="preload" href="/fonts/Futura/FuturaBT-Medium.woff2" as="font" type="font/woff2" crossorigin="anonymous">
- <!-- <link rel="preload" href="/fonts/Futura/FuturaBT-Medium.ttf" as="font" type="font/ttf" crossorigin="anonymous"> -->
-
- <link rel="preconnect" href="https://fonts.googleapis.com">
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
- <link href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&display=swap" rel="stylesheet">
-
- <link rel='stylesheet' type='text/css' href="/css/style.css">
- <link rel="icon" href="/favicon.png">
- <meta charset="utf-8"/>
+ <!--#include virtual="/common/head.shtml" -->
</head>
<body>
diff --git a/common/head.shtml b/common/head.shtml
@@ -1,4 +1,13 @@
+<!-- <link rel="preload" href="/fonts/Futura/FuturaBT-Medium.ttf" as="font" type="font/ttf" crossorigin="anonymous"> -->
+<!-- <link rel="preload" href="/fonts/Futura/FuturaBT-Medium.woff" as="font" type="font/woff" crossorigin="anonymous"> -->
<!-- <link rel="preload" href="/fonts/Futura/FuturaBT-Medium.woff2" as="font" type="font/woff2" crossorigin="anonymous"> -->
+<!-- <link rel="preload" href="/fonts/Futura/FuturaBT-Medium.woff2" as="font" type="font/woff2" crossorigin="anonymous"> -->
+
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&display=swap" rel="stylesheet">
+
+<link rel='stylesheet' type='text/css' href="/css/style.css?ver=0.1">
+<link rel="icon" type="image/x-icon" href="favicon.png">
+
+<meta charset="utf-8"/>
diff --git a/index.html b/index.html
@@ -12,15 +12,7 @@
<title>Martin Klöckner's Webpage</title>
- <!-- <link rel="preload" href="/fonts/Futura/FuturaBT-Medium.woff" as="font" type="font/woff" crossorigin="anonymous"> -->
- <!-- <link rel="preload" href="/fonts/Futura/FuturaBT-Medium.ttf" as="font" type="font/ttf" crossorigin="anonymous"> -->
-
<!--#include virtual="/common/head.shtml" -->
-
- <!-- <link href="https://fonts.googleapis.com/css2?family=Ubuntu+Mono&display=swap" rel="stylesheet"> -->
-
- <link rel='stylesheet' type='text/css' href="/css/style.css">
- <link rel="icon" type="image/x-icon" href="favicon.png">
</head>
<body>
diff --git a/scripts/template.html b/scripts/template.html
@@ -12,17 +12,13 @@
<title>$article-title$ | $pagetitle$</title>
<!--#include virtual="/common/head.shtml" -->
-
- <link rel='stylesheet' type='text/css' href="/css/style.css">
- <link rel="icon" href="/favicon.png">
+ <link rel='stylesheet' type='text/css' href="/css/article_style.css">
</head>
<body>
<!--#include virtual="/common/header.shtml" -->
<article>
- <link rel='stylesheet' type='text/css' href="/css/article_style.css">
-
$body$
<!--#include virtual="/common/end_of_article.shtml" -->