42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
|
{% set pageTitle = site.name + ' - ' + title %}
|
||
|
{% set pageDesc = '' %}
|
||
|
{% set siteTitle = site.name %}
|
||
|
{% set currentUrl = site.url + page.url %}
|
||
|
|
||
|
{% if metaTitle %}
|
||
|
{% set pageTitle = metaTitle %}
|
||
|
{% endif %}
|
||
|
|
||
|
{% if metaDesc %}
|
||
|
{% set pageDesc = metaDesc %}
|
||
|
{% endif %}
|
||
|
|
||
|
<title>{{ pageTitle }}</title>
|
||
|
<link rel="canonical" href="{{ currentUrl }}" />
|
||
|
|
||
|
<meta property="og:site_name" content="{{ siteTitle }}" />
|
||
|
<meta property="og:title" content="{{ pageTitle }}" />
|
||
|
<meta property="og:type" content="website" />
|
||
|
<meta property="og:url" content="{{ currentUrl }}" />
|
||
|
|
||
|
{% if site.authorHandle %}
|
||
|
<meta name="twitter:creator" content="@{{ site.authorHandle | replace('@', '') }}" />
|
||
|
{% endif %}
|
||
|
|
||
|
{% if metaDesc %}
|
||
|
<meta name="description" content="{{ metaDesc }}" />
|
||
|
<meta name="twitter:description" content="{{ metaDesc }}" />
|
||
|
<meta property="og:description" content="{{ metaDesc }}" />
|
||
|
{% endif %}
|
||
|
|
||
|
{% if socialImage %}
|
||
|
<meta property="og:image" content="{{ socialImage }}" />
|
||
|
<meta name="twitter:image" content="{{ socialImage }}" />
|
||
|
<meta property="og:image:alt" content="Page image for {{ site.name }}" />
|
||
|
<meta name="twitter:image:alt" content="Page image for {{ site.name }}" />
|
||
|
{% endif %}
|
||
|
|
||
|
{% if site.paymentPointer %}
|
||
|
<meta name="monetization" content="{{ site.paymentPointer }}" />
|
||
|
{% endif %}
|