website/www/conservancy/templates/news/pressrelease_detail.html
Ben Sturmfels 14abe07a4a
Remove unnecessary use of "safe" template tag.
This tag marks a variable as not requiring escaping by the template engine,
potentially creating cross-site scripting vulnerabilities, so shouldn't be used
unless absolutely necessary. In these cases, I don't think it's necessary.
2021-12-17 21:55:47 +11:00

19 lines
743 B
HTML

{% extends "base_news.html" %}
{% block head %}
{% include "opengraph_partial.html" with url=object.get_absolute_url title=object.headline description=object.get_description %}
{% include "opengraph_urllist_partial.html" with property='image' urls=object.get_one_image_url fallback='/img/conservancy-logo.png' %}
{% include "opengraph_urllist_partial.html" with property='video' urls=object.get_one_video_url %}
{% endblock %}
{% block subtitle %}{{ object.headline|striptags }} - {% endblock %}
{% block content %}
<div id="mainContent">
<div class="breadcrumbs">
<p><a href="/">Home</a> / <a href="/news/">News</a></p>
</div>
{% include "news/pressrelease_partial.html" with pressr=object htag="h2" only %}
</div>
{% endblock %}