whiteblog-theme 0.1.7 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_includes/head.html +21 -4
- data/_layouts/post.html +20 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4519436230a831742d9935980ecd091ea2d13a11a83ef341fdb3b79787ccc9c6
|
|
4
|
+
data.tar.gz: 01fb551a7d1296ec14534a845a45b52da664526e41d88b8e9f5fe130f7394529
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a46a5dac18b4cbe894c3f2c0f8f47c51a836c0fc731109eaa13091e94546b98408fa3e1a7d63823afa23d57ce2d6048218a4ebfd58531b294e52e89b8cf2a5a3
|
|
7
|
+
data.tar.gz: 8a72668232e20f00935cf84b38e47ae433aad7b823ed6fc7e9692fe2a2e382ac3cefa4c51fbd32bb2955b1a2d197306b83ae49713c4f538e68a1485277530ff7
|
data/_includes/head.html
CHANGED
|
@@ -13,11 +13,28 @@
|
|
|
13
13
|
<meta name="description" content="{{ site.description | escape }}">
|
|
14
14
|
{% endif %}
|
|
15
15
|
|
|
16
|
+
<meta property="og:title" content="{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}">
|
|
17
|
+
<meta property="og:description" content="{{ page.description | default: site.description | escape }}">
|
|
18
|
+
<meta property="og:url" content="{{ page.url | absolute_url }}">
|
|
19
|
+
<meta property="og:site_name" content="{{ site.title | escape }}">
|
|
20
|
+
{% if page.layout == "post" %}
|
|
21
|
+
<meta property="og:type" content="article">
|
|
22
|
+
<meta property="og:article:published_time" content="{{ page.date | date_to_xmlschema }}">
|
|
23
|
+
<meta property="og:article:author" content="{{ site.author.name }}">
|
|
24
|
+
{% else %}
|
|
25
|
+
<meta property="og:type" content="website">
|
|
26
|
+
{% endif %}
|
|
27
|
+
|
|
16
28
|
<meta name="twitter:card" content="summary_large_image">
|
|
17
|
-
<meta name="twitter:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
content="{{ site.url }}/assets/images/previews/{{ page.slug
|
|
29
|
+
<meta name="twitter:title" content="{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}">
|
|
30
|
+
<meta name="twitter:description" content="{{ page.description | default: site.description | escape }}">
|
|
31
|
+
{% if page.slug %}
|
|
32
|
+
<meta name="twitter:image" content="{{ site.url }}/assets/images/previews/{{ page.slug }}.png">
|
|
33
|
+
<meta property="og:image" content="{{ site.url }}/assets/images/previews/{{ page.slug }}.png">
|
|
34
|
+
{% elsif site.author.avatar %}
|
|
35
|
+
<meta name="twitter:image" content="{{ site.url }}{{ site.author.avatar }}">
|
|
36
|
+
<meta property="og:image" content="{{ site.url }}{{ site.author.avatar }}">
|
|
37
|
+
{% endif %}
|
|
21
38
|
|
|
22
39
|
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
|
|
23
40
|
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
|
data/_layouts/post.html
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
---
|
|
2
2
|
layout: default
|
|
3
3
|
---
|
|
4
|
+
<script type="application/ld+json">
|
|
5
|
+
{
|
|
6
|
+
"@context": "https://schema.org",
|
|
7
|
+
"@type": "BlogPosting",
|
|
8
|
+
"headline": {{ page.title | jsonify }},
|
|
9
|
+
"datePublished": "{{ page.date | date_to_xmlschema }}",
|
|
10
|
+
"dateModified": "{{ page.last_modified_at | default: page.date | date_to_xmlschema }}",
|
|
11
|
+
"url": "{{ page.url | absolute_url }}",
|
|
12
|
+
"description": {{ page.description | default: site.description | jsonify }},
|
|
13
|
+
"author": {
|
|
14
|
+
"@type": "Person",
|
|
15
|
+
"name": {{ site.author.name | jsonify }},
|
|
16
|
+
"url": {{ site.url | jsonify }}
|
|
17
|
+
},
|
|
18
|
+
"publisher": {
|
|
19
|
+
"@type": "Person",
|
|
20
|
+
"name": {{ site.author.name | jsonify }}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
</script>
|
|
4
24
|
<div class="container">
|
|
5
25
|
<article class="post">
|
|
6
26
|
|