Repository navigation
v0.23.0
Release Notes - DJ Press 0.23.0
This release introduces many improvements and breaking changes to the template tag system, providing better consistency across the tags, and including more flexible styling options.
Template Tag Changes
Several tags have been renamed or had their parameters modified to improve consistency across the library.
Renamed Tags
blog_categories→site_categoriesblog_tags→site_tagsdj_header→djpress_headerdj_footer→djpress_footer
Parameter Changes
post_title: Now supports anouter_classparameter. Theouter_tagparameter is now a positional-or-keyword argument, while others remain keyword-only.site_pages: Theouterparameter has been renamed toouter_tag. The default value has changed fromultodiv.page_link: Theouterparameter has been renamed toouter_tag. The default value has changed fromdivto""(no wrapping tag).- Keyword-Only Arguments: Most optional parameters in tags like
site_categories,site_tags, andsite_pages_listare now enforced as keyword-only to prevent accidental parameter mismatch.
New Tags ✨
site_description: Returns the site description as safely marked HTML, with support forouter_tagandouter_class.site_pages: Completely redesigned. It now generates a comma-separated list of linked pages (default) or a custom-wrapped list, ideal for simple navigation bars.search_url: Returns the URL of the search page (useful for custom search forms).
Tag Enhancements 🚀
site_pages_list
- Added
include_homeparameter (bool) to automatically include a link to the site root. - Added
levelsparameter (int) to control the depth of nested child pages (use0for unlimited).
site_categories & site_tags
- Added
separator,pre_text, andpost_textparameters. These allow you to create inline, comma-separated lists with custom prefixes/suffixes when not using the defaultulstructure.
post_author
- Now supports
outer_tag,outer_class,pre_text, andpost_textfor much greater control over how author attribution is rendered.
post_content
- Improved logic for "Read More" links. The tag now handles truncation more reliably and supports custom
outer_classandread_more_textdirectly.
tag_title
- Now supports a
separatorparameter for views displaying multiple concatenated tags.
Internal Improvements
- Plugin Hook Chaining: Hooks like
djpress_headeranddjpress_footernow correctly concatenate output from multiple plugins rather than overwriting. - URL Dispatching: Fixed an issue where the dispatcher would prematurely 404 on URLs matching the post prefix, allowing proper fall-through to pages and categories.
- Search Provider Robustness: Improved error handling in the search plugin handler to prevent site-wide crashes if a search plugin returns invalid data.
Full Changelog: v0.22.3...v0.23.0