From 7726127ffe604ba4fd48292ad7feebae7553d9f5 Mon Sep 17 00:00:00 2001 From: askiiart Date: Wed, 6 Mar 2024 23:42:03 -0600 Subject: [PATCH] =?UTF-8?q?Fix=20code=20background=20=E2=80=93=20again?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blog/300.html | 2 +- blog/300.md | 2 +- style.css | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/blog/300.html b/blog/300.html index 862042c..1ce1786 100644 --- a/blog/300.html +++ b/blog/300.html @@ -79,7 +79,7 @@ Connection: keep-alive

There's no Location header there! And the browsers are probably refusing to show it because of the wrong - Content-Type—and no, adding a header with + Content-Type – and no, adding a header with add_header doesn't work for that one, either.

Turns out in order to be able to use add_header, you first need to set default_type (which sets a diff --git a/blog/300.md b/blog/300.md index 4ec90b7..f58dac4 100644 --- a/blog/300.md +++ b/blog/300.md @@ -48,7 +48,7 @@ Content-Length: 223 Connection: keep-alive ``` -There's no Location header there! And the browsers are probably refusing to show it because of the wrong `Content-Type`—and no, adding a header with `add_header` doesn't work for that one, either. +There's no Location header there! And the browsers are probably refusing to show it because of the wrong `Content-Type` – and no, adding a header with `add_header` doesn't work for that one, either. Turns out in order to be able to use `add_header`, you first need to set `default_type` (which sets a default `Content-Type`). I could've set that in the `location /.git` block, but I just decided to make it global. diff --git a/style.css b/style.css index a98aa7b..9a45813 100755 --- a/style.css +++ b/style.css @@ -58,6 +58,12 @@ h3 { font-size: 24px; } +code { + background: #0e0f0f; + border-radius: .2em; + padding: .125em; +} + wrap { word-wrap: break-word }