{% set absolute_url = settings.url + "/" + link + "/" %}
{% if gallery.cover.type == "video" %}
{% set cover = Video.get(gallery.link, gallery.cover) %}
{% else %}
{% set cover = Image.get(gallery.link, gallery.cover) %}
{% endif %}
<meta property="og:title" content="{{ gallery.title }}"/>
<meta property="og:image" content="{{ absolute_url }}{{ cover.thumbnail((None, 900)) }}"/>
<meta property="og:site_name" content="{{ settings.title }}"/>
{% if gallery.description %}
<meta property="og:description" content="{{ gallery.description }}"/>
{% endif %}
<meta property="og:type" content="article"/>
<meta property="article:published_time" content="{{ gallery.date }}">
{% if gallery.tags %}
{% for tag in gallery.tags %}
<meta property="article:tag" content="{{ tag }}">
{% endfor %}
{% endif %}
