<meta property="og:title" content="{% if page.ogTitle is defined and page.ogTitle is not null %}{{ page.ogTitle }}{% else %}{{ page.title|remove_highlight_word | default(settings('siteName')) }}{% endif %}" />
<meta property="og:description" content="{% if page.ogDescription is defined and page.ogDescription is not null %}{{ page.ogDescription | striptags }}{% else %}{{ page.description | striptags | default(settings('siteDescription')) }}{% endif %}" />
<meta property="og:url" content="{{ app.request.uri }}" />
{% if settings('facebookAppId') != '' and settings('facebookAppId') is not null %}<meta property="fb:app_id" content="{{ settings('facebookAppId') }}"/>{% endif %}
{% if page.ogType is defined and page.ogType is not null %}
<meta property="og:type" content="{{ page.ogType}}" />
{% if page.ogType == 'article' %}
<meta property="og:published_time" content="{{ page.created | date('c')}}" />
<meta property="og:modified_time" content="{{ page.updated | date('c')}}" />
<meta property="og:author" content="{{ page.author.fullName }}" />
{% endif %}
{% else %}
<meta property="og:type" content="website" />
{% endif %}
{% if page.ogImage.singleMedia.publicId is defined and page.ogImage.singleMedia.publicId is not null %}
<meta property="og:image" content="{{ app.request.scheme }}:{{ cloudinary_media(page.ogImage.singleMedia, 'c_fill,h_630,q_70,w_1200') }}" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="{{ page.ogImage.singleMedia.title | default('') }}" />
{% elseif settings('siteImage').singleMedia.publicId is defined and settings('siteImage').singleMedia.publicId is not null %}
<meta property="og:image" content="{{ app.request.scheme }}:{{ cloudinary_media(settings('siteImage').singleMedia, 'c_fill,h_630,q_70,w_1200') }}" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="{{ settings('siteImage').singleMedia.title | default('') }}" />
{% endif %}
<meta property="og:site_name" content="{{ settings('siteName')}}" />
<meta name="twitter:card" content="{% if page.twitterCard is defined and page.twitterCard is not null %}{{ page.twitterCard }}{% else %} summary {% endif %}" />
<meta name="twitter:title" content="{% if page.twitterTitle is defined and page.twitterTitle is not null %}{{ page.twitterTitle }}{% else %}{{ page.title|remove_highlight_word | default(settings('siteName')) }}{% endif %}" />
<meta name="twitter:description" content="{% if page.twitterDescription is defined and page.twitterDescription is not null %}{{ page.twitterDescription | striptags }}{% else %}{{ page.description | striptags | default(settings('siteDescription')) }}{% endif %}"/>
{% if page.twitterImage.singleMedia.publicId is defined and page.twitterImage.singleMedia.publicId is not null %}
<meta name="twitter:image:src" content="{{ app.request.scheme }}:{{ cloudinary_media(page.twitterImage.singleMedia, 'c_fill,h_630,q_70,w_1200') }}" />
{% else %}
<meta name="twitter:image:src" content="{{ app.request.scheme }}:{{ cloudinary_media(settings('siteImage').singleMedia, 'c_fill,h_630,q_70,w_1200') }}" />
{% endif %}