Pagination Terse

I found this “in the wild” when looking for pagination related topics in the repo.Where can I copy the code related to the terse option for use in my theme? The pagination is the only internal template I am using.

A quick Google search and I found the pagination file. I created a pagination.html partial and:

  1. Copied all the code before {{/* Format: default to the partial.
  2. Copied all the code below {{/* Format: terse to the partial.
  3. Called the partial when required using {{ partial "pagination.html" (dict "page" . "format" "terse") }}.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.