Update templates to use logo partial
All checks were successful
Deploy Hugo / deploy (push) Successful in 22s

This commit is contained in:
Jens M. Sauer 2024-07-07 22:05:54 +02:00
parent 7505e734df
commit 54050053e7
2 changed files with 3 additions and 16 deletions

View File

@ -1,12 +1,5 @@
{{ define "main" }} {{ define "main" }}
<section class="banner style1 orient-left content-align-left"> {{ $subtext := (printf "%s\n%s" "## 404 Not Found" "Ups, die Seite die du aufrufen wolltest kann nicht gefunden werden.") }}
<div class="content"> {{ partial "logo_with_button" (dict "Page" . "Site" .Site "subtext" $subtext) }}
<h1>{{ .Site.Title }}</h1>
<h2>404 Not Found</h2>
<p>Ups, die Seite die du aufrufen wolltest kann nicht gefunden werden.</p>
<ul class="actions stacked">
<li><a href="{{ .Site.Home.RelPermalink }}" class="button primary large wide">Zurück zur Startseite</a></li>
</ul>
</section>
{{ partial "footer" . }} {{ partial "footer" . }}
{{ end }} {{ end }}

View File

@ -1,11 +1,5 @@
{{ define "main" }} {{ define "main" }}
<section class="banner style1 orient-left content-align-left"> {{ partial "logo_with_button" . }}
<div class="content">
<h1>{{ .Site.Title }}</h1>
<ul class="actions stacked">
<li><a href="{{ .Site.Home.RelPermalink }}" class="button primary large wide">Zurück zur Startseite</a></li>
</ul>
</section>
<section class="wrapper style1 align-left"> <section class="wrapper style1 align-left">
<div class="inner"> <div class="inner">
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>