forked from jakewies/hugo-theme-codex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jakewies#73 Enable summary for the post in blog
- Loading branch information
1 parent
2e2f558
commit ec69a7c
Showing
4 changed files
with
29 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,6 @@ Thumbs.db | |
|
||
# Hugo | ||
public/ | ||
|
||
# Web Storm | ||
/.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,3 @@ copyright = "© {year}" | |
name = "blog" | ||
title = "Blog" | ||
url = "/blog" | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
<div class="paginator-container"> | ||
{{ if .Paginator.HasPrev }} | ||
<a class="paginator paginator--left" href="{{ .Paginator.Prev.URL }}"></a> | ||
{{ end }} {{ if .Paginator.HasNext }} | ||
<a class="paginator paginator--right" href="{{ .Paginator.Next.URL }}"></a> | ||
{{ end }} | ||
</div> | ||
{{ if gt .Paginator.TotalPages 1}} | ||
<!-- Pagination --> | ||
<nav class="post__title" style="text-align: center; line-height: 2.3em; "> | ||
{{ $paginator := .Paginator }} | ||
{{ range .Paginator.Pagers }} | ||
{{ if eq .PageNumber $paginator.PageNumber }} | ||
<span class="pagination__page pagination__page--current" style="background-color: #d73a49; padding: 8px 15px; color: #ffffff; font-weight: bold;">{{ .PageNumber }}</span> | ||
{{ else }} | ||
<a href="{{ .URL }}" class="pagination__page" style="padding: 8px 15px;">{{ .PageNumber }}</a> | ||
{{ end }} | ||
{{ end }} | ||
</nav> | ||
{{ end }} | ||
|