|
@@ -2,22 +2,48 @@
|
|
|
{{ partial "navbar.html" . }}
|
|
|
<div class="container">
|
|
|
|
|
|
- <h1>Page not found</h1>
|
|
|
- <p>Maybe you were looking for one of these?</p>
|
|
|
+ <h1>{{ i18n "page_not_found" }}</h1>
|
|
|
+ <p>{{ i18n "404_recommendations" }}</p>
|
|
|
|
|
|
- <h2>Recent Posts</h2>
|
|
|
- {{ range last 20 (where .Data.Pages "Section" "=" "post") }}
|
|
|
+ {{ $posts_len := len (where .Site.RegularPages "Section" "post") }}
|
|
|
+ {{ if gt $posts_len 0 }}
|
|
|
+ <h2>{{ i18n "posts" }}</h2>
|
|
|
+ {{ range last 5 (where .Site.RegularPages "Section" "post") }}
|
|
|
<ul>
|
|
|
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
|
|
</ul>
|
|
|
{{ end }}
|
|
|
+ {{ end }}
|
|
|
+
|
|
|
+ {{ $pubs_len := len (where .Site.RegularPages "Section" "publication") }}
|
|
|
+ {{ if gt $pubs_len 0 }}
|
|
|
+ <h2>{{ i18n "publications" }}</h2>
|
|
|
+ {{ range last 5 (where .Site.RegularPages "Section" "publication") }}
|
|
|
+ <ul>
|
|
|
+ <li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
|
|
+ </ul>
|
|
|
+ {{ end }}
|
|
|
+ {{ end }}
|
|
|
|
|
|
- <h2>Recent Publications</h2>
|
|
|
- {{ range last 20 (where .Data.Pages "Section" "=" "publication") }}
|
|
|
+ {{ $talks_len := len (where .Site.RegularPages "Section" "talk") }}
|
|
|
+ {{ if gt $talks_len 0 }}
|
|
|
+ <h2>{{ i18n "talks" }}</h2>
|
|
|
+ {{ range last 5 (where .Site.RegularPages "Section" "talk") }}
|
|
|
<ul>
|
|
|
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
|
|
</ul>
|
|
|
{{ end }}
|
|
|
+ {{ end }}
|
|
|
+
|
|
|
+ {{ $projects_len := len (where .Site.RegularPages "Section" "project") }}
|
|
|
+ {{ if gt $projects_len 0 }}
|
|
|
+ <h2>{{ i18n "projects" }}</h2>
|
|
|
+ {{ range last 5 (where .Site.RegularPages "Section" "project") }}
|
|
|
+ <ul>
|
|
|
+ <li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
|
|
+ </ul>
|
|
|
+ {{ end }}
|
|
|
+ {{ end }}
|
|
|
|
|
|
</div>
|
|
|
{{ partial "footer_container.html" . }}
|