diff options
author | 2018-01-02 22:04:48 -0800 | |
---|---|---|
committer | 2018-01-02 22:04:48 -0800 | |
commit | 320d1b016747ba4501da9417d9ce5f99368a5768 (patch) | |
tree | 1054d96afde6022951b76cc4a09b78e1e3f05058 /template/html/common/entry_pagination.html | |
parent | c39f2e1a8d2de6d412bcc673d29eb0f7a2d1f5f7 (diff) |
Refactor packages to have more idiomatic code base
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 |