hugo-toha/layouts/404.html
hossainemruz cb0ae29984 Use unified navbar for all pages
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
2023-09-26 03:58:32 +06:00

25 lines
736 B
HTML

{{ define "navbar" }}
{{ partial "navigators/navbar.html" . }}
{{ end }}
{{ define "content" }}
{{/* not found image */}}
{{ $notFoundImage := "/images/404.png" }}
{{/* resize the image. don't resize svg because it is not supported */}}
{{ $notFoundImage := resources.Get $notFoundImage}}
{{ if and $notFoundImage (ne $notFoundImage.MediaType.SubType "svg") }}
{{ $notFoundImage = $notFoundImage.Resize "1500x" }}
{{ end }}
{{ $notFoundImage = $notFoundImage.RelPermalink}}
<div class="container">
<div class="notFound">
<img src="{{ $notFoundImage }}" alt="Page Not Found">
<div class="message">
<h1>404</h1>
<h4>{{ i18n "err_404" }}</h4>
</div>
</div>
</div>
{{ end }}