opengraph

This commit is contained in:
merdan 2021-05-21 16:28:00 +05:00
parent bd89d906b9
commit 72a33c046c
1 changed files with 8 additions and 0 deletions

View File

@ -32,4 +32,12 @@
{% if post.featured_image %}
<meta property="og:image" content="{{post.featured_image|media_cdn}}">
{% endif %}
<meta property="og:type" content="article">
<meta property="article:published_time" content="{{post.published_at|date('Y-m-d')}}">
<meta property="article:modified_time" content="{{post.updated_at|date('Y-m-d')}}">
<meta property="article:author" content="{{post.author}}">
<meta property="article:section" content="{{post.categories.first.name}}">
{% for post.tags as tag %}
<meta property="article:tag" content="{{tag}}">
{% endfor %}
{% endput %}