Remove date, tags, and navigation from the nethack page

This commit is contained in:
Eryn Wells 2022-04-16 08:45:24 -07:00
parent 40d8a828f9
commit a279e4bb11

View file

@ -3,29 +3,10 @@
<header> <header>
<div class="post-title"> <div class="post-title">
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
<div class="post-date"><time>{{ .Date | time.Format "Jan 2, 2006" }}</time></div>
</div> </div>
</header> </header>
<section class="post-content"> <section class="post-content">
{{ .Content }} {{ .Content }}
</section> </section>
{{ if .Params.tags }}
<footer>
<ul class="post-tags">
{{ range .Params.tags }} {{ $href := print (absURL "tags/") (urlize .) }}
<li><a href="{{ $href }}">{{ . }}</a></li>
{{ end }}
</ul>
</footer>
{{ end }}
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ if and (gt (len $pages) 1) (in $pages . ) }}
<nav class="post-nav">
{{ with $pages.Next . }}<a class="prev" href="{{ .Permalink }}"><span></span><span>{{ .Name }}</span></a>{{ end }}
{{ with $pages.Prev . }}<a class="next" href="{{ .Permalink }}"><span>{{ .Name }}</span><span></span></a>{{ end }}
</nav>
{{ end }}
</article> </article>
{{ end }} {{ end }}