Add 403 page
This commit is contained in:
parent
efcac82d6a
commit
07ddc100c0
8
_includes/layouts/403.njk
Normal file
8
_includes/layouts/403.njk
Normal 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
5
content/403.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
layout: layouts/403.njk
|
||||
permalink: 403.html
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
@ -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
|
||||
|
||||
-->
|
@ -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" %}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user