From c084c396dec9020bfcd603a496026a662292a40b Mon Sep 17 00:00:00 2001 From: martonvago Date: Tue, 12 Aug 2025 12:31:06 +0100 Subject: [PATCH 1/2] docs: :memo: add 404 page to template --- template/404.qmd.jinja | 19 +++++++++++++++++++ template/_quarto.yml.jinja | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 template/404.qmd.jinja diff --git a/template/404.qmd.jinja b/template/404.qmd.jinja new file mode 100644 index 0000000..348d54b --- /dev/null +++ b/template/404.qmd.jinja @@ -0,0 +1,19 @@ +--- +{% if is_seedcase_project -%} +title: "You've entered the garden of missing pages" +{% else -%} +title: "The page you are looking for does not exist" +{% endif -%} +--- + +{% if is_seedcase_project -%} +Let's get you back to greener grounds. + +👉 Go to [homepage](/index.qmd). + +![](/_extensions/seedcase-project/seedcase-theme/images/404.svg){fig-alt="An illustration of the number 404 surrounded by trees and mountains"} + +## Illustration by [Storyset](https://storyset.com/web) {.appendix} +{% else -%} +This page does not exist, go back to the [homepage](/index.qmd) or check the URL for typos. +{%- endif %} diff --git a/template/_quarto.yml.jinja b/template/_quarto.yml.jinja index cf7c3ab..f52eb7c 100644 --- a/template/_quarto.yml.jinja +++ b/template/_quarto.yml.jinja @@ -5,6 +5,8 @@ project: render: - "docs/*" - "index.qmd" + - "404.qmd" + - "CONTRIBUTING.md" website: # TODO: Fill in the title of the website. From f6fe93931c1193117b60c21b92a6d327b1b3d177 Mon Sep 17 00:00:00 2001 From: martonvago Date: Wed, 13 Aug 2025 15:12:43 +0100 Subject: [PATCH 2/2] style: :art: remove empty line --- template/404.qmd.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/404.qmd.jinja b/template/404.qmd.jinja index 348d54b..8c41ab0 100644 --- a/template/404.qmd.jinja +++ b/template/404.qmd.jinja @@ -14,6 +14,6 @@ Let's get you back to greener grounds. ![](/_extensions/seedcase-project/seedcase-theme/images/404.svg){fig-alt="An illustration of the number 404 surrounded by trees and mountains"} ## Illustration by [Storyset](https://storyset.com/web) {.appendix} -{% else -%} +{%- else -%} This page does not exist, go back to the [homepage](/index.qmd) or check the URL for typos. {%- endif %}