diff options
author | Matthew Lemon <y@yulqen.org> | 2024-05-26 16:02:28 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-05-26 16:02:28 +0100 |
commit | b3c7d985a50a38fcb19d8e9f91b5b719d43e31a4 (patch) | |
tree | d59dfcfd0281aa327a3229de0c0114eddb385399 /pyblackbird_cc/templates/resources/resource_list.html | |
parent | abd3d55662e8c39335f7d47d53bd107c51e985b8 (diff) |
Markdown for the card description
Diffstat (limited to 'pyblackbird_cc/templates/resources/resource_list.html')
-rw-r--r-- | pyblackbird_cc/templates/resources/resource_list.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pyblackbird_cc/templates/resources/resource_list.html b/pyblackbird_cc/templates/resources/resource_list.html index eb2506a..f7e705c 100644 --- a/pyblackbird_cc/templates/resources/resource_list.html +++ b/pyblackbird_cc/templates/resources/resource_list.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% load static %} +{% load markdown_extras %} {% block title %} Joanna Lemon Learning - Resource List @@ -60,7 +61,7 @@ <span class="badge bg-secondary me-2">{{ resource.age_range }}</span> </div> </div> - <p class="card-text my-3">{{ resource.description }}</p> + <p class="card-text my-3">{{ resource.description | markdown | safe }}</p> <a href="{% url 'resources:resource_detail' resource_id=resource.id %}" class="btn btn-primary">Details</a> </div> @@ -97,7 +98,7 @@ <span class="badge bg-secondary me-2">{{ resource.age_range }}</span> </div> </div> - <p class="card-text my-3">{{ resource.description }}</p> + <p class="card-text my-3">{{ resource.description | markdown | safe }}</p> <a href="{% url 'resources:resource_detail' resource_id=resource.id %}" class="btn btn-primary">Details</a> </div> |