list.html
TLDR
This file is an HTML template for a blog list page. It includes partials for the head, navigation, and footer sections. The main content of the page is generated using a range and reverse loop.
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js"> <![endif]-->
<html>
<head>
{{ partial "head.html" .}}
</head>
<body class="blog-list">
{{ partial "nav.html" .}}
<div class="container">
<div class="row">
<div class="col-md-9 doc-content">
<h3>Focalboard Developer Blog</h3>
{{ range (.Paginate .Data.Pages).Pages.ByDate.Reverse }}
{{ .Render "summary" }}
{{ end }}
<div class="blog-pagination">
{{ if .Paginator.HasNext }}
<a class="btn btn-primary btn-sm" href="{{ .Paginator.Next.URL }}"> « Previous Posts</a>
{{ end }}
{{ if .Paginator.HasPrev }}
<a class="btn btn-primary btn-sm" href="{{ .Paginator.Prev.URL }}"> Next Posts »</a>
{{ end }}
</div>
</div>
</div>
</div>
{{ partial "footer.html" .}}
</body>
</html>