You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.3 KiB
57 lines
1.3 KiB
3 years ago
|
<!doctype html>
|
||
|
<html lang="en_us">
|
||
|
|
||
3 years ago
|
<!-- render head -->
|
||
|
{{ template "head.go.tmpl" . }}
|
||
|
|
||
3 years ago
|
<body>
|
||
3 years ago
|
|
||
|
<section class="root-container welcome-container">
|
||
|
|
||
|
<!-- render menu -->
|
||
|
<div class="menu-container">
|
||
|
{{ template "menu.go.tmpl" . }}
|
||
|
</div>
|
||
|
|
||
3 years ago
|
<!-- render pinned -->
|
||
|
<div class="pinned-container">
|
||
|
{{ range .Pinned }}
|
||
|
<div class="pinned-post">
|
||
|
{{ template "post.go.tmpl" . }}
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
|
||
3 years ago
|
<div class="scroll-container">
|
||
|
<a href="#this-is-blog"><span></span></a>
|
||
|
</div>
|
||
|
|
||
3 years ago
|
</section>
|
||
|
|
||
3 years ago
|
<section id="this-is-blog" class="root-container blog-container">
|
||
|
|
||
|
<!-- render posts -->
|
||
|
<div class="posts-container">
|
||
|
{{ range .Posts }}
|
||
|
{{ template "post.go.tmpl" . }}
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
|
||
3 years ago
|
<!-- render bottom pagination -->
|
||
|
{{ if (gt .Pagination.Total 1) }}
|
||
|
<div class="pagination-container-bottom">
|
||
|
<ul>
|
||
|
<li>
|
||
|
{{ .Pagination.Page }} ←
|
||
|
</li>
|
||
|
<li>
|
||
|
<a href="{{ getBlogURL }}?page={{ add .Pagination.Page }}">{{ add .Pagination.Page }}</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
|
||
3 years ago
|
</section>
|
||
|
|
||
3 years ago
|
</body>
|
||
|
</html>
|