Add og image to section view
This commit is contained in:
parent
564f041b4a
commit
a98e7a7b3e
6 changed files with 42 additions and 0 deletions
|
|
@ -5,9 +5,18 @@
|
|||
{% load cms_tags %}
|
||||
{% load follow_tags %}
|
||||
{% load thumbnail %}
|
||||
{% load fds_ogimage %}
|
||||
|
||||
{% block title %}{{ object.title }}{% endblock %}
|
||||
|
||||
{% block meta %}
|
||||
{% include "snippets/meta.html" %}
|
||||
|
||||
{% url 'govplan:section_og' gov=object.government.slug section=object.slug as section_og_path %}
|
||||
{% ogimage_url path=section_og_path template="froide_govplan/section_og.html" as og_image_url %}
|
||||
{% include "fds_cms/social_meta.html" with object=object title=object.title description=object.description image_url=og_image_url %}
|
||||
{% endblock %}
|
||||
|
||||
{% block govplan_breadcrumbs %}
|
||||
<li class="breadcrumb-item active" aria-current="page">
|
||||
<a href="{{ object.get_absolute_url }}">{{ object.title }}</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue