Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ For more control over the appearance, customize the search form parameters:

### Building Your Own Form

If you need complete control over the HTML structure, use the `{% search_url %}` tag:
If you need complete control over the HTML structure, use the `{% get_search_url %}` tag:

```django
<form action="{% search_url %}" method="get" class="my-custom-form">
<form action="{% get_search_url %}" method="get" class="my-custom-form">
<div class="search-wrapper">
<input type="search" name="q" value="{{ search_query }}" placeholder="What are you looking for?">
<button type="submit">
Expand Down
2 changes: 1 addition & 1 deletion docs/templatetags.md
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ This will output:
Customized error display:

```django
{% search_errors outer="section" outer_class="alert alert-danger" error_tag="div" error_class="error-message" %}
{% search_errors outer_tag="section" outer_class="alert alert-danger" error_tag="div" error_class="error-message" %}
```

This will output:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "djpress"
version = "0.23.0b1"
version = "0.23.0b2"
description = "A blog application for Django sites, inspired by classic WordPress."
readme = "README.md"
requires-python = ">=3.10"
Expand Down
2 changes: 1 addition & 1 deletion src/djpress/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""djpress module."""

__version__ = "0.23.0b1just s"
__version__ = "0.23.0b2"
4 changes: 2 additions & 2 deletions src/djpress/templatetags/djpress_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def site_title(
link_html = f'<a href="{reverse("djpress:index")}"{link_class_html}>{site_title}</a>' if link else site_title

if outer_tag == "":
return link_html
return mark_safe(link_html)

# If outer_tag is not one of the allowed tags, return an empty string.
# TODO: move these tags to a constant?
Expand Down Expand Up @@ -1132,7 +1132,7 @@ def search_errors(

Example:
{% search_errors %}
{% search_errors outer="section" outer_class="alert alert-danger" %}
{% search_errors outer_tag="section" outer_class="alert alert-danger" %}
"""
errors: list | None = context.get("search_errors")

Expand Down
Loading