39
39
{% assign seo_author_twitter = seo_author_twitter | replace: "@", "" %}
40
40
{% endif %}
41
41
42
- < meta property =" og:locale " content =" {{ site.locale | default: " en " }}" >
43
- < meta property ="og:site_name " content ="{{ site.title }} ">
44
- < meta property =" og:title " content =" {{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }} " >
42
+ {% if page.date %}
43
+ < meta property ="article:published_time " content ="{{ page.date | date_to_xmlschema }} ">
44
+ {% endif %}
45
45
46
46
{% if seo_url %}
47
47
< link rel ="canonical " href ="{{ page.url | prepend: seo_url | replace: "/index.html", "/" }}">
48
- < meta property ="og:url " content ="{{ page.url | prepend: seo_url | replace: "/index.html", "/" }}">
49
- {% endif %}
50
-
51
- {% if page.excerpt %}
52
- < meta property ="og:description " name ="description " content ="{{ seo_description }} ">
53
48
{% endif %}
54
49
55
50
{% if site.twitter.username %}
83
78
{% endif %}
84
79
{% endif %}
85
80
86
- {% if page.header.image %}
87
- < meta property ="og:image " content ="{% if page.header.image contains ": //" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
88
- {% elsif page.header.overlay_image %}
89
- < meta property ="og:image " content ="{% if page.header.overlay_image contains ": //" %}{{ page.header.overlay_image }}{% else %}{{ page.header.overlay_image | prepend: "/images/" | prepend: base_path }}{% endif %}">
90
- {% endif %}
91
-
92
- {% if page.date %}
93
- < meta property ="og:type " content ="article ">
94
- < meta property ="article:published_time " content ="{{ page.date | date_to_xmlschema }} ">
95
- {% endif %}
96
-
97
81
{% if paginator.previous_page %}
98
82
< link rel ="prev " href ="{{ paginator.previous_page_path | prepend: seo_url }} ">
99
83
{% endif %}
100
84
{% if paginator.next_page %}
101
85
< link rel ="next " href ="{{ paginator.next_page_path | prepend: seo_url }} ">
102
86
{% endif %}
103
87
104
- {% if site.og_image %}
105
- < script type ="application/ld+json ">
106
- {
107
- "@context" : "http://schema.org" ,
108
- "@type" : "Organization" ,
109
- "url" : { { seo_url | jsonify } } ,
110
- "logo" : { { site . og_image | prepend : "/images/" | prepend : base_path | jsonify } }
111
- }
112
- </ script >
113
- {% endif %}
114
-
115
88
{% if site.social %}
116
89
< script type ="application/ld+json ">
117
90
{
137
110
< meta name ="yandex-verification " content ="{{ site.yandex_site_verification }} ">
138
111
{% endif %}
139
112
<!-- end SEO -->
113
+
114
+ <!-- Open Graph protocol data (https://ogp.me/), used by social media -->
115
+ < meta property ="og:locale " content ="{{ site.locale | default: "en " }}">
116
+ < meta property ="og:site_name " content ="{{ site.title }} ">
117
+ < meta property ="og:title " content ="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }} ">
118
+ {% if page.date %}
119
+ < meta property ="og:type " content ="article ">
120
+ {% endif %}
121
+ {% if page.excerpt %}
122
+ < meta property ="og:description " name ="description " content ="{{ seo_description }} ">
123
+ {% elsif site.og_description %}
124
+ < meta property ="og:description " name ="description " content ="{{ site.og_description }} ">
125
+ {% endif %}
126
+ {% if seo_url %}
127
+ < meta property ="og:url " content ="{{ page.url | prepend: seo_url | replace: "/index.html", "/" }}">
128
+ {% endif %}
129
+
130
+ {% if site.og_image %}
131
+ < script type ="application/ld+json ">
132
+ {
133
+ "@context" : "http://schema.org" ,
134
+ "@type" : "Organization" ,
135
+ "url" : { { seo_url | jsonify } } ,
136
+ "logo" : { { site . og_image | prepend : "/images/" | prepend : base_path | jsonify } }
137
+ }
138
+ </ script >
139
+ {% endif %}
140
+
141
+ {% if page.header.image %}
142
+ < meta property ="og:image " content ="{% if page.header.image contains ": //" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
143
+ {% elsif page.header.overlay_image %}
144
+ < meta property ="og:image " content ="{% if page.header.overlay_image contains ": //" %}{{ page.header.overlay_image }}{% else %}{{ page.header.overlay_image | prepend: "/images/" | prepend: base_path }}{% endif %}">
145
+ {% endif %}
146
+ <!-- end Open Graph protocol -->
0 commit comments