{% extends 'cms/blocks/schemas/_schema.html' %}
{% load wagtailcore_tags wagtailimages_tags my %}
{% block json %}
{
"@context": "http://schema.org",
"@type": "WebPage",
"dateCreated": "{{ page.first_published_at|date:"c" }}",
"dateModified": "{{ page.last_published_at|date:"c" }}",
"description": "{{ page.search_description }}",
"image": "{% image page.feed_image fill-500x500 as img %}{{ img.url }}",
"url": "https://{{ request.get_host }}{{ request.get_full_path|cut:"?build=true" }}",
"inLanguage": "fr-FR",
"name": "{{ page.seo_title }}",
"potentialAction" : {
"@type" : "SearchAction",
"target" : "https://{{ request.get_host }}/blog/?tag={search_term}",
"query-input" : "required name=search_term"
}
}
{% endblock %}