add paginator code but keep it disabled
This commit is contained in:
parent
1ffe31f6c4
commit
be9ffaf7c5
3 changed files with 24 additions and 8 deletions
|
@ -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 }}
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
{{ range .Site.RegularPages.ByDate.Reverse }}
|
||||
{{ if .IsNode }}
|
||||
{{ partial "posts.html" . }}
|
||||
{{ else }}
|
||||
{{ partial "cards/post.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue