diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ac41f1a..f9ee8a3 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -11,12 +11,12 @@ {{ end }} - - + + {{ block "pagination" . }} {{ end }} - - + + {{ partial "footer.html" . }} diff --git a/layouts/index.html b/layouts/index.html index c7fad02..08f7148 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -11,31 +11,28 @@ {{ define "pagination" }} {{ $paginator := .Paginate ((where .Site.RegularPages "Section" "moments").ByParam "top") }} {{ if $paginator.HasPrev }} - - Previous - + + + Previous + {{ else }} - - Previous - + Previous {{ end }} {{ $current_num := $paginator.PageNumber }} {{ range (seq 1 $paginator.TotalPages) }} {{ if (eq $current_num .)}} - {{.}} + {{.}} {{ else }} - {{.}} + {{.}} {{ end }} {{end}} {{ if $paginator.HasNext }} - - Next - + + Next + {{ else }} - - Next - + Next {{ end }} {{ end }} \ No newline at end of file diff --git a/static/css/style.css b/static/css/style.css index 479eb4f..105cfd7 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -35,6 +35,49 @@ p{ /* END - top cover part */ +/* START - pagination */ +.center{ + display: flex; + justify-content: center; +} + +.pagination{ + display: flex; + margin-top: 20px; + margin-bottom: 30px; +} + +.pagination a{ + color: #337cf6; + text-decoration: none; +} + +.page-item{ + border: #80808050; + border-style: solid; + border-width: 0.5px; + border-radius: 2%; + padding-left: 10px; + padding-right: 10px; + padding-top: 10px; + padding-bottom: 10px; +} + +.page-link .page-item:hover{ + background-color: #eaecef; + color: #2157ad; +} + +.page-item.active{ + background-color: #337cf6; + color: #ffffff; +} + +.page-item.disabled{ + color:rgb(108, 117, 125) +} +/* END - pagination */ + .page{ max-width: 1150px; margin: auto;