diff --git a/template/html/common/entry_pagination.html b/template/html/common/entry_pagination.html index 6ec49a65a0c511db47c118cbaf849d18417b1e7b..8b1b65e7aa909bd6e7a03ce5c4ebdd7802b9b84c 100644 --- a/template/html/common/entry_pagination.html +++ b/template/html/common/entry_pagination.html @@ -2,7 +2,7 @@ <div class="pagination"> <div class="pagination-prev"> {{ if .prevEntry }} - <a href="{{ .prevEntryRoute }}{{ if .searchQuery }}?q={{ .searchQuery }}{{ end }}" title="{{ .prevEntry.Title }}" data-page="previous">{{ t "pagination.previous" }}</a> + <a href="{{ .prevEntryRoute }}{{ if .searchQuery }}?q={{ .searchQuery }}{{ end }}" title="{{ .prevEntry.Title }}" data-page="previous" rel="prev">{{ t "pagination.previous" }}</a> {{ else }} {{ t "pagination.previous" }} {{ end }} @@ -10,10 +10,10 @@ <div class="pagination-next"> {{ if .nextEntry }} - <a href="{{ .nextEntryRoute }}{{ if .searchQuery }}?q={{ .searchQuery }}{{ end }}" title="{{ .nextEntry.Title }}" data-page="next">{{ t "pagination.next" }}</a> + <a href="{{ .nextEntryRoute }}{{ if .searchQuery }}?q={{ .searchQuery }}{{ end }}" title="{{ .nextEntry.Title }}" data-page="next" rel="next">{{ t "pagination.next" }}</a> {{ else }} {{ t "pagination.next" }} {{ end }} </div> </div> -{{ end }} \ No newline at end of file +{{ end }} diff --git a/template/html/common/pagination.html b/template/html/common/pagination.html index 328d7484cc3f2e6705321b86a5decc600fb420d3..0ad61c8bb6d74f808efd45708d4f8628a444c01a 100644 --- a/template/html/common/pagination.html +++ b/template/html/common/pagination.html @@ -2,7 +2,7 @@ <div class="pagination"> <div class="pagination-prev"> {{ if .ShowPrev }} - <a href="{{ .Route }}{{ if gt .PrevOffset 0 }}?offset={{ .PrevOffset }}{{ if .SearchQuery }}&q={{ .SearchQuery }}{{ end }}{{ else }}{{ if .SearchQuery }}?q={{ .SearchQuery }}{{ end }}{{ end }}" data-page="previous">{{ t "pagination.previous" }}</a> + <a href="{{ .Route }}{{ if gt .PrevOffset 0 }}?offset={{ .PrevOffset }}{{ if .SearchQuery }}&q={{ .SearchQuery }}{{ end }}{{ else }}{{ if .SearchQuery }}?q={{ .SearchQuery }}{{ end }}{{ end }}" data-page="previous" rel="prev">{{ t "pagination.previous" }}</a> {{ else }} {{ t "pagination.previous" }} {{ end }} @@ -10,7 +10,7 @@ <div class="pagination-next"> {{ if .ShowNext }} - <a href="{{ .Route }}?offset={{ .NextOffset }}{{ if .SearchQuery }}&q={{ .SearchQuery }}{{ end }}" data-page="next">{{ t "pagination.next" }}</a> + <a href="{{ .Route }}?offset={{ .NextOffset }}{{ if .SearchQuery }}&q={{ .SearchQuery }}{{ end }}" data-page="next" rel="next">{{ t "pagination.next" }}</a> {{ else }} {{ t "pagination.next" }} {{ end }}