From 07ddc100c09500016ec49ecaaf57573e26c1b628 Mon Sep 17 00:00:00 2001 From: Nathan Upchurch Date: Sun, 21 Jan 2024 11:26:22 -0600 Subject: [PATCH] Add 403 page --- _includes/layouts/403.njk | 8 ++++++++ content/403.md | 5 +++++ content/404.md.backup | 19 ------------------- content/tags.njk | 4 ++-- public/css/index.css | 5 +++++ 5 files changed, 20 insertions(+), 21 deletions(-) create mode 100644 _includes/layouts/403.njk create mode 100644 content/403.md delete mode 100644 content/404.md.backup diff --git a/_includes/layouts/403.njk b/_includes/layouts/403.njk new file mode 100644 index 0000000..4751e2d --- /dev/null +++ b/_includes/layouts/403.njk @@ -0,0 +1,8 @@ +--- +layout: layouts/base.njk +showPostListHeader: yep +--- +

403 Forbidden

+

*Ahem* Go to the home page.

+ +{{ content | safe }} diff --git a/content/403.md b/content/403.md new file mode 100644 index 0000000..7346962 --- /dev/null +++ b/content/403.md @@ -0,0 +1,5 @@ +--- +layout: layouts/403.njk +permalink: 403.html +eleventyExcludeFromCollections: true +--- diff --git a/content/404.md.backup b/content/404.md.backup deleted file mode 100644 index bd51f61..0000000 --- a/content/404.md.backup +++ /dev/null @@ -1,19 +0,0 @@ ---- -layout: layouts/home.njk -permalink: 404.html -eleventyExcludeFromCollections: true ---- -# Content not found. - -Go home. - - diff --git a/content/tags.njk b/content/tags.njk index 1a13dba..c14461c 100644 --- a/content/tags.njk +++ b/content/tags.njk @@ -14,7 +14,7 @@ eleventyComputed: title: Tagged “{{ tag }}” permalink: "/tags/{{ tag | slugify }}/" --- -

More posts about “{{ tag }}.” +

More posts tagged “{{ tag }}.” @@ -37,7 +37,7 @@ permalink: "/tags/{{ tag | slugify }}/"

-

Here's everything I've posted about {{ tag }}:

+

Here's everything I've posted with the tag “{{ tag }}:”

{% set postslist = collections[ tag ] %} {% include "postslist.njk" %} diff --git a/public/css/index.css b/public/css/index.css index 36a4c14..85ff7ad 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -541,6 +541,11 @@ h2 + .header-anchor { .post-tag, a.post-tag { font-size: var(--font-xs); } + .tag-feed-icon { + height: 2rem; + transition: var(--transition-normal); + width: var(--single-gap); + } .taglist { flex-flow: column nowrap; }