-
Notifications
You must be signed in to change notification settings - Fork 1
/
404.html
40 lines (33 loc) · 968 Bytes
/
404.html
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: site
title: 404
permalink: /404.html
searchable: false
---
{% assign featured_post_count = 0 %}
{% for post in site.posts %}
{% if post.featured == true and post.draft != true %}
{% assign featured_post_count = featured_post_count | plus: 1 %}
{% endif %}
{% endfor %}
<div id="pagefind-search-box" class="mt-3 mb-5"></div>
<div class="text-center">
<h1 class="display-1 mt-5 mb-3"><span class="badge bg-danger">404</span> send help</h1>
{% if featured_post_count == 1 %}
<p>Page not found. Here's something else for you to read.</p>
{% endif %}
{% if featured_post_count > 1 %}
<p>Page not found. Here's some other posts instead.</p>
{% endif %}
</div>
{% if featured_post_count > 0 %}
<section class="featured-posts mt-5">
<div class="row">
{% for post in site.posts %}
{% if post.featured == true %}
{% include featuredbox.html %}
{% endif %}
{% endfor %}
</div>
</section>
{% endif %}