From 714556f985daad0a77ec5f0b967f831e1060f822 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Wed, 17 Apr 2024 11:38:39 +0200 Subject: [PATCH] fix --- content/error.html | 2 +- layouts/error/single.html | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 layouts/error/single.html diff --git a/content/error.html b/content/error.html index 844e5847..46b92041 100644 --- a/content/error.html +++ b/content/error.html @@ -1,5 +1,5 @@ --- title: 404 url: /error.html -layout: 404 +type: error --- \ No newline at end of file diff --git a/layouts/error/single.html b/layouts/error/single.html new file mode 100644 index 00000000..315272fd --- /dev/null +++ b/layouts/error/single.html @@ -0,0 +1,13 @@ +{{ define "main" }} + {{ $title := i18n "errors.error_404.title" }} + {{ partial "header/hero.html" + (dict + "title" $title + "context" . + )}} + <div class="container"> + <p> + {{ safeHTML (i18n "errors.error_404.text") }} + </p> + </div> +{{ end }} -- GitLab