This PR adds a global option with key hide_single or you can set it as an option in pagination_links function i.e. pagination_links(conn, page, hide_single: true). (also open to change the option to a different name, can't think of a better name at the moment).
All tests are passing. Let me know if this is something you like or don't like. I'm okay with either decision. I can definitely hide the pagination in the template, but it's probably convenient to have it as an option.
I need to hide pagination when total pages are one/zero. There is also related issue here, https://github.com/mgwidmann/scrivener_html/issues/75.
This PR adds a global option with key
hide_single
or you can set it as an option inpagination_links
function i.e.pagination_links(conn, page, hide_single: true)
. (also open to change the option to a different name, can't think of a better name at the moment).All tests are passing. Let me know if this is something you like or don't like. I'm okay with either decision. I can definitely hide the pagination in the template, but it's probably convenient to have it as an option.