This repository has been archived on 2025-05-12. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
hack13-blog/themes/hacksite/layouts/_default/list.html
2022-03-26 01:49:51 +00:00

36 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<br>
<main role="main">
<div class="container">
{{- block "main" . }}{{- end }}
<h1>{{.Title}}</h1>
{{.Content}}
<!-- Ranges through content/posts/*.md -->
{{ range (.Paginator 10).Pages }}
<article>
<!-- this <div> includes the title summary -->
<div>
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<tt>{{ .Date.Format "Jan 2, 2006" }}</tt><br/>
{{ .Summary }}
</div>
{{ if .Truncated }}
<!-- This <div> includes a read more link, but only if the summary is truncated... -->
<div>
<a href="{{ .RelPermalink }}">Read More…</a>
</div>
<br />
{{ end }}
</article>
{{ end }}
<br />
{{ template "_internal/pagination.html" . }}
</div>
</main>
{{- partial "footer.html" . -}}
</body>
</html>