|
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
6 | | - <title>{{ title or metadata.title }}</title> |
7 | | - <meta name="description" content="{{ description or metadata.description }}"> |
| 6 | + <title>{{ title or site.title }}</title> |
| 7 | + <meta name="description" content="{{ description or site.description }}"> |
8 | 8 | <link rel="canonical" href="https://rupertmckay.com{{ page.url }}"> |
9 | 9 | <link rel="shortcut icon" type="image/x-icon" href="{{ '/static/favicon.ico' | url }}"> |
10 | 10 | <link rel="stylesheet" href="{{ '/static/styles.css' | url }}"> |
11 | 11 | <link rel="stylesheet" href="{{ '/static/prism.css' | url }}"> |
12 | | - <link rel="alternate" type="application/atom+xml" title="{{ metadata.title }}" href="/feed.xml"> |
| 12 | + <link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="/feed.xml"> |
13 | 13 |
|
14 | 14 | <!-- Open Graph / Facebook --> |
15 | 15 | <meta property="og:type" content="{% if layout == 'layouts/post.njk' %}article{% else %}website{% endif %}" /> |
16 | 16 | <meta property="og:url" content="https://rupertmckay.com{{ page.url }}" /> |
17 | | - <meta property="og:site_name" content="{{ metadata.title }}" /> |
18 | | - <meta property="og:title" content="{{ title or metadata.title }}" /> |
19 | | - <meta property="og:description" content="{{ description or metadata.description }}" /> |
| 17 | + <meta property="og:site_name" content="{{ site.title }}" /> |
| 18 | + <meta property="og:title" content="{{ title or site.title }}" /> |
| 19 | + <meta property="og:description" content="{{ description or site.description }}" /> |
20 | 20 | <meta property="og:image" content="{{ socialImage or 'https://raw.githubusercontent.com/fildon/train-ride/main/train-ride.png' }}" /> |
21 | 21 | <meta property="og:image:type" content="image/png" /> |
22 | 22 | <meta property="og:image:width" content="1280" /> |
23 | 23 | <meta property="og:image:height" content="640" /> |
24 | 24 | {% if layout == 'layouts/post.njk' %} |
25 | 25 | <meta property="article:published_time" content="{{ date | htmlDateString }}" /> |
26 | | - <meta property="article:author" content="{{ metadata.title }}" /> |
| 26 | + <meta property="article:author" content="{{ site.author.name }}" /> |
27 | 27 | {% endif %} |
28 | 28 |
|
29 | 29 | <!-- Twitter --> |
30 | 30 | <meta name="twitter:card" content="summary_large_image" /> |
31 | 31 | <meta property="twitter:domain" content="rupertmckay.com" /> |
32 | 32 | <meta property="twitter:url" content="https://rupertmckay.com{{ page.url }}" /> |
33 | | - <meta name="twitter:title" content="{{ title or metadata.title }}" /> |
34 | | - <meta name="twitter:description" content="{{ description or metadata.description }}" /> |
| 33 | + <meta name="twitter:title" content="{{ title or site.title }}" /> |
| 34 | + <meta name="twitter:description" content="{{ description or site.description }}" /> |
35 | 35 | <meta name="twitter:image" content="{{ socialImage or 'https://raw.githubusercontent.com/fildon/train-ride/main/train-ride.png' }}" /> |
36 | 36 |
|
37 | 37 | <!-- JSON-LD Structured Data --> |
|
41 | 41 | "@context": "https://schema.org", |
42 | 42 | "@type": "BlogPosting", |
43 | 43 | "headline": "{{ title }}", |
44 | | - "description": "{{ description or metadata.description }}", |
| 44 | + "description": "{{ description or site.description }}", |
45 | 45 | "author": { |
46 | 46 | "@type": "Person", |
47 | | - "name": "{{ metadata.title }}", |
| 47 | + "name": "{{ site.author.name }}", |
48 | 48 | "url": "https://rupertmckay.com" |
49 | 49 | }, |
50 | 50 | "datePublished": "{{ date | htmlDateString }}", |
|
53 | 53 | "image": "{{ socialImage or 'https://raw.githubusercontent.com/fildon/train-ride/main/train-ride.png' }}", |
54 | 54 | "publisher": { |
55 | 55 | "@type": "Person", |
56 | | - "name": "{{ metadata.title }}", |
| 56 | + "name": "{{ site.author.name }}", |
57 | 57 | "url": "https://rupertmckay.com" |
58 | 58 | }, |
59 | 59 | "mainEntityOfPage": { |
|
67 | 67 | { |
68 | 68 | "@context": "https://schema.org", |
69 | 69 | "@type": "WebSite", |
70 | | - "name": "{{ metadata.title }}", |
71 | | - "description": "{{ metadata.description }}", |
| 70 | + "name": "{{ site.title }}", |
| 71 | + "description": "{{ site.description }}", |
72 | 72 | "url": "https://rupertmckay.com", |
73 | 73 | "author": { |
74 | 74 | "@type": "Person", |
75 | | - "name": "{{ metadata.title }}", |
| 75 | + "name": "{{ site.author.name }}", |
76 | 76 | "url": "https://rupertmckay.com" |
77 | 77 | } |
78 | 78 | } |
|
0 commit comments