Week 02 of 2025

Development log of Tad Notes

2 items
  1. Make the path to the stylesheet absolute
  2. Set base URL to /, use relative paths in the head

Make the path to the stylesheet absolute

On by Tad Lispy

index 04b95b6..cab9a2b 100644
--- a/templates/common-head.html
+++ b/templates/common-head.html
@@ -2,7 +2,7 @@
=        <meta http-equiv="x-ua-compatible" content="ie=edge">
=        <meta name="viewport" content="width=device-width, initial-scale=1">
=
-        <link rel="stylesheet" href="styles/style.css" type="text/css" media="screen" />
+        <link rel="stylesheet" href="/styles/style.css" type="text/css" media="screen" />
=
=        <link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
=        <link rel="icon" type="image/svg+xml" href="/favicon.svg" />

Set base URL to /, use relative paths in the head

On by Tad Lispy

index cab9a2b..9a41d35 100644
--- a/templates/common-head.html
+++ b/templates/common-head.html
@@ -2,11 +2,13 @@
=        <meta http-equiv="x-ua-compatible" content="ie=edge">
=        <meta name="viewport" content="width=device-width, initial-scale=1">
=
-        <link rel="stylesheet" href="/styles/style.css" type="text/css" media="screen" />
+        <base href="/" />
=
-        <link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
-        <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
-        <link rel="shortcut icon" href="/favicon.ico" />
-        <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
+        <link rel="stylesheet" href="styles/style.css" type="text/css" media="screen" />
+
+        <link rel="icon" type="image/png" href="favicon-96x96.png" sizes="96x96" />
+        <link rel="icon" type="image/svg+xml" href="favicon.svg" />
+        <link rel="shortcut icon" href="favicon.ico" />
+        <link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png" />
=        <meta name="apple-mobile-web-app-title" content="Tad Notes" />
-        <link rel="manifest" href="/site.webmanifest" />
+        <link rel="manifest" href="site.webmanifest" />