{{ define "main" }}
  <h1>RESOURCE NOT FOUND</h1>
  <p>the page you're looking for doesn't exist or has been moved.</p>
  
  <nav aria-label="404 navigation">
    <ul>
      <li><a href="{{ "/" | relURL }}">← return to homepage</a></li>
      {{ with site.Home }}
        {{ with .GetPage "posts" }}
          {{ if . }}
            <li><a href="{{ .RelPermalink }}">browse posts</a></li>
          {{ end }}
        {{ end }}
      {{ end }}
      {{ with site.Home }}
        {{ with .GetPage "about" }}
          {{ if . }}
            <li><a href="{{ .RelPermalink }}">about page</a></li>
          {{ end }}
        {{ end }}
      {{ end }}
    </ul>
  </nav>
{{ end }}
