Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat: add taxonomy list and single term templates #239

Merged
merged 1 commit into from
Jan 1, 2024

Conversation

welpo
Copy link
Owner

@welpo welpo commented Jan 1, 2024

Summary

This PR adds fallback/default templates for taxonomies other than tags.

Related issue

Resolves #229.

Changes

The changes include the addition of two new fallback templates:

  • taxonomy_list.html.
  • taxonomy_single.html.

Docs: https://www.getzola.org/documentation/templates/taxonomies/

Useful for users who might need taxonomies other than the default, tags.

The taxonomy terms can be translated if the user adds the necessary lines in their i18n folder. It falls back to the taxonomy name.

Accessibility

Remains teh same as the default tags page(s).

Type of change

  • New feature (adds non-breaking functionality)
  • Bug fix (fixes an issue without altering functionality)
  • Breaking change (alters existing functionality)
  • UI/UX improvement (enhances user interface without altering functionality)
  • Refactor (improves code quality without altering functionality)
  • Documentation update
  • Other (please describe below)

Checklist

  • I have verified the accessibility of my changes
  • I have tested all possible scenarios for this change
  • I have updated theme.toml with a sane default for the feature
  • I have made corresponding changes to the documentation:
    • Updated config.toml comments
    • Updated theme.toml comments
    • Updated "Mastering tabi" post in English
    • (Optional) Updated "Mastering tabi" post in Spanish
    • (Optional) Updated "Mastering tabi" post in Catalan

@welpo welpo added the enhancement New feature or request label Jan 1, 2024
@welpo welpo merged commit 39fc4ec into main Jan 1, 2024
1 check passed
@welpo welpo deleted the feat/default-taxonomy-template branch January 1, 2024 16:02
Smtbook pushed a commit to Smtbook/zola-theme-tabi that referenced this pull request Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default taxonomies
1 participant