Repository navigation
Expand file tree
/
Copy path404.html
More file actions
40 lines (37 loc) · 1.32 KB
/
Copy path404.html
File metadata and controls
40 lines (37 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
layout: default
title: 'Page not found'
permalink: /404.html
sitemap: false
---
{%- comment -%}
GitHub Pages serves this for any unmatched path, at any depth, so every asset
and link here has to be site-absolute. relative_url gives that.
Reuses the list header and empty-state styles rather than inventing a 404 look.
{%- endcomment -%}
<div class="list-head">
<h1 class="list-kicker">404</h1>
<span class="list-rule" aria-hidden="true"></span>
<span class="list-count">not found</span>
</div>
<p class="list-sub">that page has moved, or never existed</p>
<div class="empty-state">
<p>
If you followed a link and landed on this page, the post may have been
renamed.
</p>
<p>
Try the search box, or browse <a href="{{ '/' | relative_url }}">all {{ site.posts | size }} posts</a>.
</p>
<div class="chips chips--centred">
{%- comment -%}
The six most used labels, ordered by the same include the sidebar uses -- so
"most used" cannot drift out of step with a hand-maintained list.
{%- endcomment -%}
{%- capture ordered -%}{%- include tags-by-count.html -%}{%- endcapture -%}
{%- assign slugs = ordered | split: "," -%}
{%- for slug in slugs limit: 6 %}
<a class="chip" href="{{ '/tags/' | append: slug | append: '/' | relative_url }}">#{{ slug }}</a>
{%- endfor %}
</div>
</div>