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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36a4c233b3d6621d70fc24d3c6cf722f4692f235d61824a746b85e7d1db3ec9c
4
- data.tar.gz: 4892aa9f20adda332680928eddb5c6c03cc8a9ecb2ecf8d11ecb97f5fe551e32
3
+ metadata.gz: 4519436230a831742d9935980ecd091ea2d13a11a83ef341fdb3b79787ccc9c6
4
+ data.tar.gz: 01fb551a7d1296ec14534a845a45b52da664526e41d88b8e9f5fe130f7394529
5
5
  SHA512:
6
- metadata.gz: 824fbe475d2852dffe6d9276b61af0f0cfcbe367969efb5d812da23588df94e575c9a3812ddf364f392898bf2dc720d486d22561f9c51513c595a2aeb7dd1c11
7
- data.tar.gz: a04cc892f6bf0b6ffb422c388f502c922a4d55b6ee4349847f5d7ea4cb7ba351700484324d787e562245705c371fc7100920551eb272fe2ff4ebe7a56ec1f66c
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:image"
18
- content="{{ site.url }}/assets/images/previews/{{ page.slug | default: 'default' }}.png">
19
- <meta property="og:image"
20
- content="{{ site.url }}/assets/images/previews/{{ page.slug | default: 'default' }}.png">
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whiteblog-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Silva