diff options
Diffstat (limited to 'template/html/common/entry_pagination.html')
-rw-r--r-- | template/html/common/entry_pagination.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/template/html/common/entry_pagination.html b/template/html/common/entry_pagination.html new file mode 100644 index 0000000..6c9f29c --- /dev/null +++ b/template/html/common/entry_pagination.html @@ -0,0 +1,19 @@ +{{ define "entry_pagination" }} +<div class="pagination"> + <div class="pagination-prev"> + {{ if .prevEntry }} + <a href="{{ .prevEntryRoute }}" title="{{ .prevEntry.Title }}" data-page="previous">{{ t "Previous" }}</a> + {{ else }} + {{ t "Previous" }} + {{ end }} + </div> + + <div class="pagination-next"> + {{ if .nextEntry }} + <a href="{{ .nextEntryRoute }}" title="{{ .nextEntry.Title }}" data-page="next">{{ t "Next" }}</a> + {{ else }} + {{ t "Next" }} + {{ end }} + </div> +</div> +{{ end }}
\ No newline at end of file |