{% extends "wagtailmetadata/parts/tags.html" %}

{% block meta %}

{% endblock %}

{% block twitter %}
<meta name="twitter:card" content="{{ object.get_meta_twitter_card_type }}">
<meta name="twitter:title" content="{{ object.get_meta_title }} — {{ site_name }}">
<meta name="twitter:description" content="{{ object.meta_description }}">
{% if meta_image %}<meta name="twitter:image" content="{{ meta_image }}">{% endif %}
{% endblock twitter %}

{% block opengraph %}
<meta property="og:url" content="{{ object.get_meta_url }}" />
<meta property="og:title" content="{{ object.get_meta_title }}" />
<meta property="og:description" content="{% if object.search_description %}{{ object.search_description }}{% else %}{{ object.meta_description }}{% endif %}" />
<meta property="og:site_name" content="{{ site_name }}" />
{% if meta_image %}<meta property="og:image" content="{{ meta_image }}" />{% endif %}
{% endblock opengraph %}