404.html 736 B

12345678910111213141516171819202122232425
  1. {{ define "navbar" }}
  2. {{ partial "navigators/navbar.html" . }}
  3. {{ end }}
  4. {{ define "content" }}
  5. {{/* not found image */}}
  6. {{ $notFoundImage := "/images/404.png" }}
  7. {{/* resize the image. don't resize svg because it is not supported */}}
  8. {{ $notFoundImage := resources.Get $notFoundImage}}
  9. {{ if and $notFoundImage (ne $notFoundImage.MediaType.SubType "svg") }}
  10. {{ $notFoundImage = $notFoundImage.Resize "1500x" }}
  11. {{ end }}
  12. {{ $notFoundImage = $notFoundImage.RelPermalink}}
  13. <div class="container">
  14. <div class="notFound">
  15. <img src="{{ $notFoundImage }}" alt="Page Not Found">
  16. <div class="message">
  17. <h1>404</h1>
  18. <h4>{{ i18n "err_404" }}</h4>
  19. </div>
  20. </div>
  21. </div>
  22. {{ end }}