How to check the taxonomy and term page

I want fix “Pagination SEO issue: canonical url on paginated pages does not work” according to this method hugo-testing/layouts/_default/baseof.html at hugo-forum-topic-37643 · jmooring/hugo-testing · GitHub.

we can use IsHome to check the home page and use IsSection to check the Section page. but no method to check taxonomy and term page.

You can invoke pagination on the home page template, section templates, taxonomy templates, and term templates.

{{ if eq .Kind "taxonomy" }}
{{ if eq .Kind "term" }}
1 Like

Thank you for your response. It works.

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