add paginator code but keep it disabled

This commit is contained in:
hossainemruz 2020-06-11 02:17:51 +06:00
parent 1ffe31f6c4
commit be9ffaf7c5
3 changed files with 24 additions and 8 deletions

View file

@ -21,8 +21,17 @@
<div class="content container-fluid" id="content">
<div class="content-cards">
<div class="container-fluid filtr-container post-cards" id="post-cards">
{{ partial "posts.html" . }}
{{ range .Site.RegularPages }}
{{ partial "cards/post.html" . }}
{{ end }}
{{/* {{ $paginator := .Paginate .Site.RegularPages 120 }}
{{ range $paginator.Pages }}
{{ partial "cards/post.html" . }}
{{ end }} */}}
</div>
{{/* <div class="paginator">
{{ template "_internal/pagination.html" . }}
</div> */}}
</div>
</div>
{{ end }}

View file

@ -1,7 +0,0 @@
{{ range .Site.RegularPages.ByDate.Reverse }}
{{ if .IsNode }}
{{ partial "posts.html" . }}
{{ else }}
{{ partial "cards/post.html" . }}
{{ end }}
{{ end }}

View file

@ -209,6 +209,20 @@ a.focused {
text-decoration: none;
}
.content-cards .paginator{
width: fit-content;
margin: auto;
}
.content-cards .paginator .page-item>a{
color: #248aaa;
}
.content-cards .paginator .page-item.active>a{
background-color: #248aaa;
color: #f9fafc;
}
.navbar-toggler {
display: none;
}