Skip to content

Commit 4a33f1e

Browse files
authored
feat: ✨ add 404 page to template (#141)
# Description This PR adds a 404 page to the template. This PR needs a quick review. ## Checklist - [x] Added or updated tests - [x] Updated documentation - [x] Ran `just run-all`
1 parent ba52dba commit 4a33f1e

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

template/404.qmd.jinja

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
{% if is_seedcase_project -%}
3+
title: "You've entered the garden of missing pages"
4+
{% else -%}
5+
title: "The page you are looking for does not exist"
6+
{% endif -%}
7+
---
8+
9+
{% if is_seedcase_project -%}
10+
Let's get you back to greener grounds.
11+
12+
👉 Go to [homepage](/index.qmd).
13+
14+
![](/_extensions/seedcase-project/seedcase-theme/images/404.svg){fig-alt="An illustration of the number 404 surrounded by trees and mountains"}
15+
16+
## Illustration by [Storyset](https://storyset.com/web) {.appendix}
17+
{%- else -%}
18+
This page does not exist, go back to the [homepage](/index.qmd) or check the URL for typos.
19+
{%- endif %}

template/_quarto.yml.jinja

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ project:
55
render:
66
- "docs/*"
77
- "index.qmd"
8+
- "404.qmd"
9+
- "CONTRIBUTING.md"
810

911
website:
1012
# TODO: Fill in the title of the website.

0 commit comments

Comments
 (0)