Add 403 page

This commit is contained in:
Nathan Upchurch 2024-01-21 11:26:22 -06:00
parent efcac82d6a
commit 07ddc100c0
5 changed files with 20 additions and 21 deletions

View File

@ -0,0 +1,8 @@
---
layout: layouts/base.njk
showPostListHeader: yep
---
<h1>403 Forbidden</h1>
<p class="nodropcap page-block">*Ahem* <a href="/">Go to the home page</a>.</p>
{{ content | safe }}

5
content/403.md Normal file
View File

@ -0,0 +1,5 @@
---
layout: layouts/403.njk
permalink: 403.html
eleventyExcludeFromCollections: true
---

View File

@ -1,19 +0,0 @@
---
layout: layouts/home.njk
permalink: 404.html
eleventyExcludeFromCollections: true
---
# Content not found.
Go <a href="/">home</a>.
<!--
Read more: https://www.11ty.dev/docs/quicktips/not-found/
This will work for both GitHub pages and Netlify:
* https://help.github.com/articles/creating-a-custom-404-page-for-your-github-pages-site/
* https://www.netlify.com/docs/redirects/#custom-404
-->

View File

@ -14,7 +14,7 @@ eleventyComputed:
title: Tagged “{{ tag }}”
permalink: "/tags/{{ tag | slugify }}/"
---
<h1>More posts about “{{ tag }}.”
<h1>More posts tagged “{{ tag }}.”
<a href="/feeds/{{ tag | slugify }}.xml">
<!-- RSS Logo -->
<svg class="tag-feed-icon" viewBox="0 0 155 155" width="153.349" height="152.909" version="1.0" xmlns="http://www.w3.org/2000/svg">
@ -37,7 +37,7 @@ permalink: "/tags/{{ tag | slugify }}/"
</svg>
</a>
</h1>
<p class="page-block nodropcap">Here's everything I've posted about {{ tag }}:</p>
<p class="page-block nodropcap">Here's everything I've posted with the tag “{{ tag }}:”</p>
{% set postslist = collections[ tag ] %}
{% include "postslist.njk" %}

View File

@ -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;
}