
<title>
    {% if meta.title %}
        {{ meta.title }}
    {% else %}
        {% if title %}
            {{ title }}
        {% elif object %}
            {{ object }}
        {% endif %}

        {% if site %}
            {% if title or object %}
                -
            {% endif %}

            {{ site.name }}
        {% endif %}
    {% endif %}
</title>

{% if meta.description %}
    <meta name="description" content="{{ meta.description }}">
{% endif %}

{% if meta.keywords %}
    <meta name="keywords" content="{{ meta.keywords }}">
{% endif %}

{% if meta.open_graph_url %}
    <meta property="og:url" content="{{ meta.open_graph_url }}">
{% endif %}

{% if meta.og_title %}
    <meta property="og:title" content="{{ meta.og_title }}">
{% endif %}

{% if meta.og_description %}
    <meta property="og:description" content="{{ meta.og_description }}">
{% endif %}

{% if meta.open_graph_image %}
    <meta property="og:image" content="{{ meta.open_graph_image.url }}">
    <meta property="og:image:width" content="{{ meta.open_graph_image_width }}">
    <meta property="og:image:height" content="{{ meta.open_graph_image_height }}">
{% endif %}

{% if meta.og_title and meta.og_description %}
    {% if meta.open_graph_image %}
        <meta name="twitter:card" content="summary_large_image">
    {% else %}
        <meta name="twitter:card" content="summary">
    {% endif %}
{% endif %}
