mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-21 23:35:08 +01:00
add 404 page with tag list
This commit is contained in:
parent
cf5e597491
commit
c964eb8ea7
19
layouts/_default/404.html
Normal file
19
layouts/_default/404.html
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
<div class="post">
|
||||||
|
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
|
||||||
|
<div class="post-content">
|
||||||
|
<p>{{ "Hmm... Sorry, this page seems to be missing." | markdownify }}
|
||||||
|
{{ if .Site.Taxonomies.tags }}
|
||||||
|
{{ "Maybe these tags will help you find what you're looking for. :smile:" | markdownify | emojify }}</p>
|
||||||
|
<h2>Tags</h2>
|
||||||
|
<div class="terms">
|
||||||
|
<ul class="terms__list">
|
||||||
|
{{ range .Site.Taxonomies.tags }}
|
||||||
|
<li class="terms__term"><a href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a><span class="terms__term-count">{{ .Count }}</span></li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
Loading…
Reference in New Issue
Block a user