404.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {{ partial "header.html" . }}
  2. {{ partial "navbar.html" . }}
  3. <div class="container">
  4. <h1>{{ i18n "page_not_found" }}</h1>
  5. <p>{{ i18n "404_recommendations" }}</p>
  6. {{ $posts_len := len (where .Site.RegularPages "Section" "post") }}
  7. {{ if gt $posts_len 0 }}
  8. <h2>{{ i18n "posts" }}</h2>
  9. {{ range last 5 (where .Site.RegularPages "Section" "post") }}
  10. <ul>
  11. <li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
  12. </ul>
  13. {{ end }}
  14. {{ end }}
  15. {{ $pubs_len := len (where .Site.RegularPages "Section" "publication") }}
  16. {{ if gt $pubs_len 0 }}
  17. <h2>{{ i18n "publications" }}</h2>
  18. {{ range last 5 (where .Site.RegularPages "Section" "publication") }}
  19. <ul>
  20. <li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
  21. </ul>
  22. {{ end }}
  23. {{ end }}
  24. {{ $talks_len := len (where .Site.RegularPages "Section" "talk") }}
  25. {{ if gt $talks_len 0 }}
  26. <h2>{{ i18n "talks" }}</h2>
  27. {{ range last 5 (where .Site.RegularPages "Section" "talk") }}
  28. <ul>
  29. <li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
  30. </ul>
  31. {{ end }}
  32. {{ end }}
  33. {{ $projects_len := len (where .Site.RegularPages "Section" "project") }}
  34. {{ if gt $projects_len 0 }}
  35. <h2>{{ i18n "projects" }}</h2>
  36. {{ range last 5 (where .Site.RegularPages "Section" "project") }}
  37. <ul>
  38. <li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
  39. </ul>
  40. {{ end }}
  41. {{ end }}
  42. </div>
  43. {{ partial "footer_container.html" . }}
  44. {{ partial "footer.html" . }}