404.html 926 B

1234567891011121314151617181920212223242526272829
  1. {{ define "header" }}
  2. <link rel="stylesheet" href="{{ "/assets/css/404.css" | relURL }}">
  3. {{ end }}
  4. {{ define "navbar" }}
  5. {{ partial "navigators/navbar-2.html" (dict "baseURL" site.BaseURL "title" site.Title "hasToggleButton" false) }}
  6. {{ end }}
  7. {{ define "content" }}
  8. {{/* not found image */}}
  9. {{ $notFoundImage := "/images/404.png" }}
  10. {{/* resize the image. don't resize svg because it is not supported */}}
  11. {{ $notFoundImage := resources.Get $notFoundImage}}
  12. {{ if and $notFoundImage (ne $notFoundImage.MediaType.SubType "svg") }}
  13. {{ $notFoundImage = $notFoundImage.Resize "1500x" }}
  14. {{ end }}
  15. {{ $notFoundImage = $notFoundImage.RelPermalink}}
  16. <div class="container">
  17. <div class="notFound">
  18. <img src="{{ $notFoundImage }}" alt="">
  19. <div class="message">
  20. <h1>404</h1>
  21. <h4>The page you are looking for is not there yet.</h4>
  22. </div>
  23. </div>
  24. </div>
  25. {{ end }}