Blog Open Graph
HTML
Add to the head of the template page for the Blog (remove any additional Open Graph)
{% capture featuredImageSrc %}
{%if {{post.featuredImageUrl}} contains 'youtu'%}
{% capture videoImg %}
{% blogPostFeaturedImage embedVideo="false" %}
{% endcapture %}
{{ videoImg | split: 'src' | last | strip_html | replace: '"', '' | replace: '=', '' | replace: 'alt', '' | split: ' ' | first }}
{%else%}
{% snippet name='website' %}{{post.featuredImageUrl}}
{%endif%}
{% endcapture %}
<meta property="og:type" content="article" />
<meta property="og:image:alt" content="{% snippet name='market-1' %} property management" />
<meta property="og:title" content="{{ post.title }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{% snippet name='website' %}{{post.url}}" />
<meta property="og:image" content="{{ featuredImageSrc }}" />
<meta property="og:description" content="{{post.metaDescription}}" />