-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3c9c29
commit 6375486
Showing
3 changed files
with
46 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
--- | ||
layout: minimal | ||
title: 404 | ||
subtitle: Page not found | ||
|
@@ -9,36 +9,39 @@ robots: noindex | |
sitemap: false | ||
reload: true | ||
--- | ||
|
||
<div class="my-auto text-center"> | ||
<h1 {% if site.search.provider %}{%else%}class="display-1 font-weight-bold" {% endif %}>4<i class="fa fa-times-circle"></i>4</h1> | ||
<h2>{{ page.subtitle }}</h2> | ||
<h1 {% if site.search.provider %}{% else %}class="display-1 font-weight-bold" {% endif %}>4<i class="fa fa-times-circle"></i>4</h1> | ||
<h2>{{ page.subtitle }}</h2> | ||
</div> | ||
|
||
<main class="container-lg pt-2 pb-5 {% if site.search.provider %}flex-fill{% endif %}"> | ||
<!-- (c) Ben Balter https://ben.balter.com/2022/06/30/helpful-404s-for-jekyll-and-github-pages/ --> | ||
<div class="row"> | ||
<div class="col-md-8 offset-md-2 my-0 text-center"> | ||
<div class="alert alert-warning text-center" role="alert"> | ||
<p class="font-weight-bold my-0 py-1">Perhaps you're looking for <span id="four-oh-four-suggestion"></span>?</p> | ||
</div> | ||
</div> | ||
</div> | ||
{% if site.search.provider %} | ||
<div class="row"> | ||
<div class="col-lg-8 offset-lg-2 my-auto text-center"> | ||
<p class="lead font-weight-bold">{{ site.search.label | default: 'Search' }} <i class="fa fa-search" aria-hidden="true"></i></p> | ||
{%- if site.search.provider == "lunr" -%} | ||
{%- include search/lunr.html -%} | ||
{% elsif site.search.provider == "google" %} | ||
{%- include search/google.html -%} | ||
{% elsif site.search.provider == "algolia" %} | ||
{%- include search/algolia.html -%} | ||
{% elsif site.search.provider == "simplesearch" %} | ||
{%- include search/simplesearch.html -%} | ||
{%- endif -%} | ||
</div> | ||
</div> | ||
{% endif %} | ||
<!-- (c) Ben Balter https://ben.balter.com/2022/06/30/helpful-404s-for-jekyll-and-github-pages/ --> | ||
<div class="row"> | ||
<div class="col-md-8 offset-md-2 my-0 text-center"> | ||
<div class="alert alert-warning text-center" role="alert"> | ||
<p class="font-weight-bold my-0 py-1">Perhaps you're looking for <span id="four-oh-four-suggestion"></span>?</p> | ||
</div> | ||
</div> | ||
</div> | ||
{% if site.search.provider %} | ||
<div class="row"> | ||
<div class="col-lg-8 offset-lg-2 my-auto text-center"> | ||
<p class="lead font-weight-bold">{{ site.search.label | default: 'Search' }} <i class="fa fa-search" aria-hidden="true"></i></p> | ||
{%- if site.search.provider == "lunr" -%} | ||
{%- include search/lunr.html -%} | ||
{% elsif site.search.provider == "google" %} | ||
{%- include search/google.html -%} | ||
{% elsif site.search.provider == "algolia" %} | ||
{%- include search/algolia.html -%} | ||
{% elsif site.search.provider == "simplesearch" %} | ||
{%- include search/simplesearch.html -%} | ||
{% elsif site.search.provider == "fusejs" %} | ||
{%- include search/fusejs.html -%} | ||
{%- endif -%} | ||
</div> | ||
</div> | ||
{% endif %} | ||
</main> | ||
|
||
<script src="{{ '/assets/js/better404/better404.js' | absolute_url }}"></script> | ||
|
@@ -49,24 +52,29 @@ reload: true | |
{% endif %} | ||
|
||
{%- if site.search.provider == "lunr" -%} | ||
<style> | ||
<style> | ||
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300&display=swap'); | ||
|
||
.lunr{ | ||
font-family: 'Heebo', sans-serif; | ||
background-color: black; | ||
color: white; | ||
.lunr { | ||
font-family: 'Heebo', sans-serif; | ||
background-color: black; | ||
color: white; | ||
} | ||
</style> | ||
</style> | ||
<script src="https://unpkg.com/lunr/lunr.min.js"></script> | ||
<script src="{{ '/assets/js/lunr/lunr-store.js' | absolute_url }}"></script> | ||
<script src="{{ '/assets/js/lunr/lunr-search.js' | absolute_url }}"></script> | ||
{% endif %} | ||
{%- if site.search.provider == "algolia" -%} | ||
<script src="https://cdn.jsdelivr.net/npm/algoliasearch@4/dist/algoliasearch-lite.umd.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/instantsearch.js@4"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/instantsearch.js@4"></script> | ||
<script src="{{ '/assets/js/algolia/algolia-search.js' | absolute_url }}"></script> | ||
{% endif %} | ||
{%- if site.search.provider == "google" -%} | ||
<script src="{{ '/assets/js/google/google-search.js' | absolute_url }}"></script> | ||
{% endif %} | ||
{%- if site.search.provider == "fusejs" -%} | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="{{ '/assets/js/fusejs/fusejs-store.js' | absolute_url }}"></script> | ||
<script src="{{ '/assets/js/fusejs/fusejs-search.js' | absolute_url }}"></script> | ||
{% endif %} |