add last page in html

pull/1/head^2
Marshall 2020-09-21 14:14:55 -04:00
parent e3363cf53e
commit 959cb153fa
2 changed files with 9 additions and 0 deletions

View File

@ -56,6 +56,10 @@ which contains *all* Project Gutenberg metadata in one RDF/XML file.
rel="next"
title="Next Page"
href="${os.url ('search', start_index = os.next_page_index)}" />
<link py:if="os.show_next_page_link"
rel="last"
title="Last Page"
href="${os.url ('search', start_index = os.last_page_index)}" />
<meta name="totalResults" content="${os.total_results}" />
<meta name="startIndex" content="${os.start_index}" />

View File

@ -149,6 +149,11 @@
accesskey="+"
href="${os.url_carry (start_index = os.next_page_index)}">Next</a>
</py:if>
<py:if test="os.show_next_page_link">|
<a title="Go to the last page of results."
accesskey="+"
href="${os.url_carry (start_index = os.last_page_index)}">Next</a>
</py:if>
</span>
</py:def>