You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hugo-theme-mini/layouts/404.html

42 lines
1001 B
HTML

{{ define "main" }}
<div id="page-404">
<div class="text">
{{ with .Site.Params.title404 }}
<h1>{{ . }}</h1>
{{ else }}
<h1>404 - Page Not Found</h1>
{{ end }}
{{ with .Site.Params.subtitle404 }}
<div>{{ . }}</div>
{{ else }}
<div>The content you're looking for doesn't seem to exist.</div>
{{ end }}
</div>
</div>
{{ with .Site.Params.readMore }}
<h2 class="read-more">{{ . }}</h2>
{{ else }}
<h2 class="read-more">Read More</h2>
{{ end }}
{{ $pages := .Site.RegularPages }}
{{ $paginator := .Paginate ($pages) }}
{{ range $paginator.Pages }}
{{ $title := .Title }}
{{ $date := dateFormat "Jan 2, 2006" .Date }}
<section class="item">
<div>
<h1 class="title"><a href='{{ .RelPermalink }}'>{{ $title }}</a></h1>
<div class="date">{{ $date }}</div>
</div>
</section>
{{ end }}
</div>
{{ end }}