From cddc7e9304710694ada0719c276a695496ce16b7 Mon Sep 17 00:00:00 2001
From: andrzej
Date: Thu, 14 Nov 2024 20:09:18 +0100
Subject: [PATCH] styling
---
content/posts/hard-problem.md | 20 +-
content/posts/permissions-strike-again.md | 2 +-
hugo.toml | 2 +-
public/categories/index.html | 4 +-
public/categories/index.xml | 4 +-
public/css/main.css | 33 +-
public/css/syntax.css | 532 +++++++++++++++---
public/index.html | 11 +-
public/index.xml | 6 +-
public/posts/hard-problem/index.html | 12 +-
public/posts/index.html | 6 +-
public/posts/index.xml | 6 +-
.../posts/permissions-strike-again/index.html | 6 +-
public/posts/post-1/index.html | 4 +-
public/posts/post-2/index.html | 4 +-
public/posts/post-3/index.html | 4 +-
public/tags/blue/index.html | 4 +-
public/tags/blue/index.xml | 4 +-
public/tags/green/index.html | 4 +-
public/tags/green/index.xml | 4 +-
public/tags/index.html | 4 +-
public/tags/index.xml | 4 +-
public/tags/red/index.html | 4 +-
public/tags/red/index.xml | 4 +-
themes/cuqui/assets/css/main.css | 33 +-
themes/cuqui/assets/css/syntax.css | 532 +++++++++++++++---
themes/cuqui/content/_index.md | 3 -
27 files changed, 998 insertions(+), 258 deletions(-)
diff --git a/content/posts/hard-problem.md b/content/posts/hard-problem.md
index 8045109..7474d73 100644
--- a/content/posts/hard-problem.md
+++ b/content/posts/hard-problem.md
@@ -20,25 +20,7 @@ The best way to deal with this problem is to tell the browser not to cache our H
## Invalidating cached CSS
-A quick google search revealed that the best way to invalidate browser cache is by changing the url of the file you're telling it to load. So we would change this:
-
-```html
-
-```
-
-to this:
-
-```html
-
-```
-
-and the browser would recognize this as new file and load it from the server. Problem solved! Of course, you would have to change the file name too...
-
-```bash
-mv css/defaults.css css/defaults-2.css
-```
-
-... and this would get tedious very quickly. Furthermore, it's going to make a mess of your version history if, as far as Git is concerned, you're deleting the CSS file and writing a new one with every deployment. Surely there's a better way?
+What we need is for the browser to recognize our CSS as a new file and load it anew from the server. We could change the file name whenever we want to bust the cache, but this would get tedious very quickly. What's more, as far as Git is concerned, we'd be deleting the CSS file and writing a new one with every deployment. Surely there's a better way?
### Using a query
diff --git a/content/posts/permissions-strike-again.md b/content/posts/permissions-strike-again.md
index cf04a05..c9e6a6e 100644
--- a/content/posts/permissions-strike-again.md
+++ b/content/posts/permissions-strike-again.md
@@ -4,7 +4,7 @@ draft = false
title = 'Permissions Strike Again'
+++
-# It's always permissions
+## It's always permissions
Configuring Apache really isn't rocket science. There are a wealth of great tutorials online, the documentation is very well documented, and the defaults work more or less out of the box. But it's one of those jobs that I do just infrequently enough that I always forget things in the interim, and end up making the same old mistakes.
diff --git a/hugo.toml b/hugo.toml
index b3f9f0a..f475d10 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -1,6 +1,6 @@
baseURL = 'https://example.org/'
languageCode = 'en-us'
-title = 'My New Hugo Site'
+title = 'CODING WITH ANDRZEJ'
theme = "cuqui"
[markup]
[markup.highlight]
diff --git a/public/categories/index.html b/public/categories/index.html
index 1af961d..e46da3e 100644
--- a/public/categories/index.html
+++ b/public/categories/index.html
@@ -4,7 +4,7 @@
- Categories | My New Hugo Site
+ Categories | CODING WITH ANDRZEJ
@@ -16,7 +16,7 @@
-
My New Hugo Site
+
CODING WITH ANDRZEJ
The experienced computer touchers amongst you will be saying “this is obviously a cache problem”, and you’re right, it is obviously a cache problem. Pressing CTR + SHIFT + R (which forces Firefox to clear the cache and do a full reload) proved this thesis, and solved the problem handily for me, on my machine. But what about other people’s machines?
Configuring Apache really isn’t rocket science. There are a wealth of great tutorials online, the documentation is very well documented, and the defaults work more or less out of the box. But it’s one of those jobs that I do just infrequently enough that I always forget things in the interim, and end up making the same old mistakes.
And it almost always has to do with permissions.
diff --git a/public/index.xml b/public/index.xml
index 215d191..e1c1453 100644
--- a/public/index.xml
+++ b/public/index.xml
@@ -1,9 +1,9 @@
- Home on My New Hugo Site
+ Home on CODING WITH ANDRZEJ
http://localhost:1313/
- Recent content in Home on My New Hugo Site
+ Recent content in Home on CODING WITH ANDRZEJHugoen-usWed, 13 Nov 2024 14:24:21 +0100
@@ -20,7 +20,7 @@
http://localhost:1313/posts/permissions-strike-again/
Wed, 13 Nov 2024 11:53:13 +0100http://localhost:1313/posts/permissions-strike-again/
- <h1 id="its-always-permissions">It’s always permissions</h1>
<p>Configuring Apache really isn’t rocket science. There are a wealth of great tutorials online, the documentation is very well documented, and the defaults work more or less out of the box. But it’s one of those jobs that I do just infrequently enough that I always forget things in the interim, and end up making the same old mistakes.</p>
<p><strong>And it almost always has to do with permissions.</strong></p>
+ <h2 id="its-always-permissions">It’s always permissions</h2>
<p>Configuring Apache really isn’t rocket science. There are a wealth of great tutorials online, the documentation is very well documented, and the defaults work more or less out of the box. But it’s one of those jobs that I do just infrequently enough that I always forget things in the interim, and end up making the same old mistakes.</p>
<p><strong>And it almost always has to do with permissions.</strong></p>Post 3
diff --git a/public/posts/hard-problem/index.html b/public/posts/hard-problem/index.html
index 242b49e..1397254 100644
--- a/public/posts/hard-problem/index.html
+++ b/public/posts/hard-problem/index.html
@@ -4,7 +4,7 @@
- Hard Problem: Invalidating the browser cache | My New Hugo Site
+ Hard Problem: Invalidating the browser cache | CODING WITH ANDRZEJ
@@ -16,7 +16,7 @@
-
My New Hugo Site
+
CODING WITH ANDRZEJ
@@ -49,13 +49,7 @@
The best way to deal with this problem is to tell the browser not to cache our HTML in the first place. We can achieve this by adding the following meta tag to index.html, and any other HTML files we don’t want cached.
<metahttp-equiv="pragma"content="no-cache"/>
Invalidating cached CSS
-
A quick google search revealed that the best way to invalidate browser cache is by changing the url of the file you’re telling it to load. So we would change this:
and the browser would recognize this as new file and load it from the server. Problem solved! Of course, you would have to change the file name too…
-
mv css/defaults.css css/defaults-2.css
-
… and this would get tedious very quickly. Furthermore, it’s going to make a mess of your version history if, as far as Git is concerned, you’re deleting the CSS file and writing a new one with every deployment. Surely there’s a better way?
+
What we need is for the browser to recognize our CSS as a new file and load it anew from the server. We could change the file name whenever we want to bust the cache, but this would get tedious very quickly. What’s more, as far as Git is concerned, we’d be deleting the CSS file and writing a new one with every deployment. Surely there’s a better way?
Using a query
Of course there is. Look at this:
<linkrel="stylesheet"href="css/defaults.css?v=2"/>
diff --git a/public/posts/index.html b/public/posts/index.html
index 9c21b06..31e9886 100644
--- a/public/posts/index.html
+++ b/public/posts/index.html
@@ -4,7 +4,7 @@
- Posts | My New Hugo Site
+ Posts | CODING WITH ANDRZEJ
@@ -16,7 +16,7 @@
-
My New Hugo Site
+
CODING WITH ANDRZEJ
@@ -46,7 +46,7 @@
The experienced computer touchers amongst you will be saying “this is obviously a cache problem”, and you’re right, it is obviously a cache problem. Pressing CTR + SHIFT + R (which forces Firefox to clear the cache and do a full reload) proved this thesis, and solved the problem handily for me, on my machine. But what about other people’s machines?
Configuring Apache really isn’t rocket science. There are a wealth of great tutorials online, the documentation is very well documented, and the defaults work more or less out of the box. But it’s one of those jobs that I do just infrequently enough that I always forget things in the interim, and end up making the same old mistakes.
And it almost always has to do with permissions.
diff --git a/public/posts/index.xml b/public/posts/index.xml
index 7941845..6a3d70c 100644
--- a/public/posts/index.xml
+++ b/public/posts/index.xml
@@ -1,9 +1,9 @@
- Posts on My New Hugo Site
+ Posts on CODING WITH ANDRZEJ
http://localhost:1313/posts/
- Recent content in Posts on My New Hugo Site
+ Recent content in Posts on CODING WITH ANDRZEJHugoen-usWed, 13 Nov 2024 14:24:21 +0100
@@ -20,7 +20,7 @@
http://localhost:1313/posts/permissions-strike-again/
Wed, 13 Nov 2024 11:53:13 +0100http://localhost:1313/posts/permissions-strike-again/
- <h1 id="its-always-permissions">It’s always permissions</h1>
<p>Configuring Apache really isn’t rocket science. There are a wealth of great tutorials online, the documentation is very well documented, and the defaults work more or less out of the box. But it’s one of those jobs that I do just infrequently enough that I always forget things in the interim, and end up making the same old mistakes.</p>
<p><strong>And it almost always has to do with permissions.</strong></p>
+ <h2 id="its-always-permissions">It’s always permissions</h2>
<p>Configuring Apache really isn’t rocket science. There are a wealth of great tutorials online, the documentation is very well documented, and the defaults work more or less out of the box. But it’s one of those jobs that I do just infrequently enough that I always forget things in the interim, and end up making the same old mistakes.</p>
<p><strong>And it almost always has to do with permissions.</strong></p>Post 3
diff --git a/public/posts/permissions-strike-again/index.html b/public/posts/permissions-strike-again/index.html
index 84eaa7c..b55cab6 100644
--- a/public/posts/permissions-strike-again/index.html
+++ b/public/posts/permissions-strike-again/index.html
@@ -4,7 +4,7 @@
- Permissions Strike Again | My New Hugo Site
+ Permissions Strike Again | CODING WITH ANDRZEJ
@@ -16,7 +16,7 @@
-
My New Hugo Site
+
CODING WITH ANDRZEJ
@@ -42,7 +42,7 @@
-
It’s always permissions
+
It’s always permissions
Configuring Apache really isn’t rocket science. There are a wealth of great tutorials online, the documentation is very well documented, and the defaults work more or less out of the box. But it’s one of those jobs that I do just infrequently enough that I always forget things in the interim, and end up making the same old mistakes.
And it almost always has to do with permissions.
So, I’m writing this post both as a means of christening this devlog (Hi! I’m Andrzej! Hire me!) and also as a reminder to myself that the home folder is not executable by default.
diff --git a/public/posts/post-1/index.html b/public/posts/post-1/index.html
index 122362a..b90ec5b 100644
--- a/public/posts/post-1/index.html
+++ b/public/posts/post-1/index.html
@@ -4,7 +4,7 @@
- Post 1 | My New Hugo Site
+ Post 1 | CODING WITH ANDRZEJ
@@ -16,7 +16,7 @@
-
My New Hugo Site
+
CODING WITH ANDRZEJ
diff --git a/public/posts/post-2/index.html b/public/posts/post-2/index.html
index bca05f9..1ba60f0 100644
--- a/public/posts/post-2/index.html
+++ b/public/posts/post-2/index.html
@@ -4,7 +4,7 @@
- Post 2 | My New Hugo Site
+ Post 2 | CODING WITH ANDRZEJ
@@ -16,7 +16,7 @@
-
My New Hugo Site
+
CODING WITH ANDRZEJ
diff --git a/public/posts/post-3/index.html b/public/posts/post-3/index.html
index 6e2cb31..951af52 100644
--- a/public/posts/post-3/index.html
+++ b/public/posts/post-3/index.html
@@ -4,7 +4,7 @@
- Post 3 | My New Hugo Site
+ Post 3 | CODING WITH ANDRZEJ
@@ -16,7 +16,7 @@
-
My New Hugo Site
+
CODING WITH ANDRZEJ
diff --git a/public/tags/blue/index.html b/public/tags/blue/index.html
index da30466..c2b5cf3 100644
--- a/public/tags/blue/index.html
+++ b/public/tags/blue/index.html
@@ -4,7 +4,7 @@
- Blue | My New Hugo Site
+ Blue | CODING WITH ANDRZEJ
@@ -16,7 +16,7 @@
-
My New Hugo Site
+
CODING WITH ANDRZEJ
diff --git a/public/tags/blue/index.xml b/public/tags/blue/index.xml
index aee0e76..9c33ae5 100644
--- a/public/tags/blue/index.xml
+++ b/public/tags/blue/index.xml
@@ -1,9 +1,9 @@
- Blue on My New Hugo Site
+ Blue on CODING WITH ANDRZEJ
http://localhost:1313/tags/blue/
- Recent content in Blue on My New Hugo Site
+ Recent content in Blue on CODING WITH ANDRZEJHugoen-usWed, 15 Mar 2023 11:00:00 -0700
diff --git a/public/tags/green/index.html b/public/tags/green/index.html
index b0c994c..f112d62 100644
--- a/public/tags/green/index.html
+++ b/public/tags/green/index.html
@@ -4,7 +4,7 @@
- Green | My New Hugo Site
+ Green | CODING WITH ANDRZEJ
@@ -16,7 +16,7 @@
-
My New Hugo Site
+
CODING WITH ANDRZEJ
diff --git a/public/tags/green/index.xml b/public/tags/green/index.xml
index 4d5f10b..073b27d 100644
--- a/public/tags/green/index.xml
+++ b/public/tags/green/index.xml
@@ -1,9 +1,9 @@
- Green on My New Hugo Site
+ Green on CODING WITH ANDRZEJ
http://localhost:1313/tags/green/
- Recent content in Green on My New Hugo Site
+ Recent content in Green on CODING WITH ANDRZEJHugoen-usWed, 15 Mar 2023 11:00:00 -0700
diff --git a/public/tags/index.html b/public/tags/index.html
index e698ba8..e0d3b90 100644
--- a/public/tags/index.html
+++ b/public/tags/index.html
@@ -4,7 +4,7 @@
- Tags | My New Hugo Site
+ Tags | CODING WITH ANDRZEJ
@@ -16,7 +16,7 @@
-
My New Hugo Site
+
CODING WITH ANDRZEJ
diff --git a/public/tags/index.xml b/public/tags/index.xml
index 3058c6a..6ab2b3b 100644
--- a/public/tags/index.xml
+++ b/public/tags/index.xml
@@ -1,9 +1,9 @@
- Tags on My New Hugo Site
+ Tags on CODING WITH ANDRZEJ
http://localhost:1313/tags/
- Recent content in Tags on My New Hugo Site
+ Recent content in Tags on CODING WITH ANDRZEJHugoen-usWed, 15 Mar 2023 11:00:00 -0700
diff --git a/public/tags/red/index.html b/public/tags/red/index.html
index f5156fe..6641312 100644
--- a/public/tags/red/index.html
+++ b/public/tags/red/index.html
@@ -4,7 +4,7 @@
- Red | My New Hugo Site
+ Red | CODING WITH ANDRZEJ
@@ -16,7 +16,7 @@
-