Skip to content

Commit

Permalink
wip render short_desc
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Jun 28, 2023
1 parent cb357e2 commit 713d979
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lacommunaute/templates/forum/category_forum_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h2>texte pour le SEO</h2>
<p class="h3 lh-base">{{ forum.name }}</p>
{% if forum.short_description %}
<div>
{{ forum.short_description.rendered }}
{{ forum.short_description }}
</div>
{% endif %}
</div>
Expand Down
22 changes: 19 additions & 3 deletions lacommunaute/templates/forum/forum_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,27 @@ <h1>
{% endif %}
{{ forum.name }}
</h1>
{% if forum.description %}
<div class="lead">{{forum.description.rendered|urlizetrunc_target_blank:30}}</div>
{% endif %}
</div>
</div>

{% if forum.short_description %}
<div class="row mt-3">
<div class="col-12">
<h2 class="h2">
{{ forum.short_description }}
</h2>
</div>
</div>
{% endif %}

{% if forum.description %}
<div class="row mt-3">
<div class="col-12">
<div class="lead">{{forum.description.rendered|urlizetrunc_target_blank:30}}</div>
</div>
</div>
{% endif %}

{% if sub_forums %}
{% forum_list sub_forums %}
{% endif %}
Expand Down

0 comments on commit 713d979

Please sign in to comment.