44 lines
1.5 KiB
HTML
44 lines
1.5 KiB
HTML
{% put meta %}
|
|
{% default %}
|
|
{% if post.powerseo_redirect_url %}
|
|
<meta http-equiv="refresh" content="0; url={{post.powerseo_redirect_url}}" />
|
|
{% endif %}
|
|
|
|
{% if post.powerseo_title %}
|
|
<title>{{ post.powerseo_title | generateTitle}}</title>
|
|
{% else %}
|
|
<title>{{ post.title | generateTitle }}</title>
|
|
{% endif %}
|
|
|
|
{% if post.powerseo_description %}
|
|
<meta name="description" content="{{post.powerseo_description}}">
|
|
{% endif %}
|
|
|
|
{% if post.powerseo_keywords %}
|
|
<meta name="keywords" content="{{post.powerseo_keywords}}">
|
|
{% endif %}
|
|
|
|
{% if post.powerseo_canonical_url %}
|
|
<link rel="canonical" href="{{post.powerseo_canonical_url}}" />
|
|
{% else %}
|
|
{{ '' | generateCanonicalUrl}}
|
|
{% endif %}
|
|
|
|
<meta name="robots" content="{{post.powerseo_robot_index}},{{post.powerseo_robot_follow}}">
|
|
|
|
{{ ''|otherMetaTags|raw }}
|
|
|
|
{{ post|generateOgTags }}
|
|
{% 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 %}
|