|
|
@ -13,6 +13,29 @@ |
|
|
|
{{ template "menu.go.tmpl" . }} |
|
|
|
{{ template "menu.go.tmpl" . }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- render top pagination --> |
|
|
|
|
|
|
|
{{ if (gt .Pagination.Page 1) }} |
|
|
|
|
|
|
|
<div class="pagination-container-top"> |
|
|
|
|
|
|
|
<ul> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ if (gt .Pagination.Page 1) }} |
|
|
|
|
|
|
|
<li> |
|
|
|
|
|
|
|
<a href="{{ getBlogURL }}?page={{ sub .Pagination.Page }}">{{ sub .Pagination.Page }}</a> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
{{ end }} |
|
|
|
|
|
|
|
<li> |
|
|
|
|
|
|
|
{{ .Pagination.Page }} ← |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
{{ if (lt .Pagination.Page .Pagination.Total) }} |
|
|
|
|
|
|
|
<li> |
|
|
|
|
|
|
|
<a href="{{ getBlogURL }}?page={{ add .Pagination.Page }}">{{ add .Pagination.Page }}</a> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
{{ end }} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</ul> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{{ end }} |
|
|
|
|
|
|
|
|
|
|
|
<!-- render posts --> |
|
|
|
<!-- render posts --> |
|
|
|
<div class="posts-container"> |
|
|
|
<div class="posts-container"> |
|
|
|
{{ range .Posts }} |
|
|
|
{{ range .Posts }} |
|
|
@ -20,6 +43,29 @@ |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- render bottom pagination --> |
|
|
|
|
|
|
|
{{ if (gt .Pagination.Total 1) }} |
|
|
|
|
|
|
|
<div class="pagination-container-bottom"> |
|
|
|
|
|
|
|
<ul> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ if (gt .Pagination.Page 1) }} |
|
|
|
|
|
|
|
<li> |
|
|
|
|
|
|
|
<a href="{{ getBlogURL }}?page={{ sub .Pagination.Page }}">{{ sub .Pagination.Page }}</a> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
{{ end }} |
|
|
|
|
|
|
|
<li> |
|
|
|
|
|
|
|
{{ .Pagination.Page }} ← |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
{{ if (lt .Pagination.Page .Pagination.Total) }} |
|
|
|
|
|
|
|
<li> |
|
|
|
|
|
|
|
<a href="{{ getBlogURL }}?page={{ add .Pagination.Page }}">{{ add .Pagination.Page }}</a> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
{{ end }} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</ul> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{{ end }} |
|
|
|
|
|
|
|
|
|
|
|
</section> |
|
|
|
</section> |
|
|
|
|
|
|
|
|
|
|
|
</body> |
|
|
|
</body> |
|
|
|