Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yoshiharuyamashita/blackburn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/pagination.html12
-rw-r--r--static/css/blackburn.css5
2 files changed, 14 insertions, 3 deletions
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html
index 50c8c4f..43e0891 100644
--- a/layouts/partials/pagination.html
+++ b/layouts/partials/pagination.html
@@ -1,11 +1,17 @@
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
+{{ $prev := "fa fa-chevron-left"}}
+{{ $next := "fa fa-chevron-right"}}
<nav class="pagination" role="pagination">
{{ if .Paginator.HasPrev }}
- <a href="{{ .Paginator.Prev.URL }}"><i class="fa fa-angle-double-left"></i></a>
+ <a href="{{ .Paginator.Prev.URL }}"><i class="{{ $prev }}"></i></a>
+ {{ else }}
+ <i class="{{ $prev }}"></i>
{{ end }}
- <span>{{ .Paginator.PageNumber }} / {{ .Paginator.TotalPages }}</span>
+ <span>&nbsp;{{ .Paginator.PageNumber }} / {{ .Paginator.TotalPages }}&nbsp;</span>
{{ if .Paginator.HasNext }}
- <a href="{{ .Paginator.Next.URL }}"><i class="fa fa-angle-double-right"></i></a>
+ <a href="{{ .Paginator.Next.URL }}"><i class="{{ $next }}"></i></a>
+ {{ else }}
+ <i class="{{ $next }}"></i>
{{ end }}
</nav>
{{ end }}
diff --git a/static/css/blackburn.css b/static/css/blackburn.css
index ba6868d..c591985 100644
--- a/static/css/blackburn.css
+++ b/static/css/blackburn.css
@@ -69,4 +69,9 @@ i {
.pagination {
text-align: center;
+ margin-top: 3em;
+}
+
+.pagination a {
+ color: #265778;
} \ No newline at end of file