|
8 | 8 | <meta name="author" content="{{ metadata.author.name }}" /> |
9 | 9 | <link rel="canonical" href="{{ page.url | absoluteUrl(metadata.url) }}" /> |
10 | 10 |
|
| 11 | +<script type="application/ld+json"> |
| 12 | +{ |
| 13 | + "@context": "https://schema.org", |
| 14 | + "@type": "BlogPosting", |
| 15 | + "mainEntityOfPage": { |
| 16 | + "@type": "WebPage", |
| 17 | + "@id": "{{ metadata.url }}" |
| 18 | + }, |
| 19 | + "headline": "{{ title or metadata.title }}", |
| 20 | + "description": "{{ description or metadata.description }}", |
| 21 | + {% if image %}"image": "{{ page.url | absoluteUrl(metadata.url) }}{{ image }}",{% endif %} |
| 22 | + "author": { |
| 23 | + "@type": "Person", |
| 24 | + "name": "{{ metadata.author.name }}" |
| 25 | + }, |
| 26 | + "publisher": { |
| 27 | + "@type": "Organization", |
| 28 | + "name": "{{ metadata.title }}", |
| 29 | + "logo": { |
| 30 | + "@type": "ImageObject", |
| 31 | + "url": "{{ metadata.logo | absoluteUrl(metadata.url) }}" |
| 32 | + } |
| 33 | + }, |
| 34 | + "datePublished": "{{ date | isoDate }}", |
| 35 | + "dateModified": "{{ renderDate | isoDate }}" |
| 36 | +} |
| 37 | +</script> |
| 38 | + |
11 | 39 | {% favicons 'public/img/icon.svg' %} |
12 | 40 |
|
13 | 41 | <meta property="og:url" content="{{ page.url | absoluteUrl(metadata.url) }}"> |
14 | 42 | <meta property="og:type" content="website"> |
15 | 43 | <meta property="og:title" content="{% if title %}{{ title }} | {% endif %}{{ metadata.title }}"> |
16 | 44 | <meta property="og:description" content="{% if description %}{{ description }}{% else %}{{ metadata.description }}{% endif %}"> |
| 45 | +{% if image %}<meta property="og:image" content="{{ page.url | absoluteUrl(metadata.url) }}{{ image }}" />{% endif %} |
17 | 46 |
|
18 | 47 | <meta property="twitter:card" content="summary_large_image"> |
19 | 48 | <meta name="twitter:title" content="{% if title %}{{ title }} | {% endif %}{{ metadata.title }}" /> |
20 | 49 | <meta name="twitter:description" content="{{ description or metadata.description }}" /> |
| 50 | +{% if image %}<meta name="twitter:image" content="{{ page.url | absoluteUrl(metadata.url) }}{{ image }}" />{% endif %} |
21 | 51 |
|
22 | 52 | <meta name="robots" content="index, follow" /> |
23 | 53 | <link rel="alternate" href="{{ 'feed/feed.xml' | absoluteUrl(metadata.url) }}" type="application/atom+xml" title="{{ metadata.title }}"> |
|
0 commit comments