featherweight 0.6 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3eea45f44ac811dade1063f72adf7f843360bd7ac7b29f780b84dc8162cbbacc
4
- data.tar.gz: 9defd546784bc1a9cec7cd44d0212ec4d47f30e3df88a84e781b2368d0e0f7aa
3
+ metadata.gz: fbf59279d93888e56b08f45e81cab77c8e92600445a7890e30f8e4d4f78f07ef
4
+ data.tar.gz: 86ced039fe94ae5b01b98978fbc5abe9999939717a0e3529309b525c1a936c62
5
5
  SHA512:
6
- metadata.gz: e32bd724f3163e2d939742c805f357d0229d39a41aa73e2068b9ab54deca09d91c690a928f2233d08f9bf78b31e7603e3bb1125f4b2d6ee9f97d3efc6d65c9ae
7
- data.tar.gz: 6e2d6c7d4d04e7e7a07a6e2547a3f45350c8c17d64030ce24c76cfceb2f32b8b3926e84b17792a5c07348516e5c7ed5bb667d15a2d0cf297efbb446ace745ad2
6
+ metadata.gz: 7b54deefe900af671a635e05365dba83409f8879e2da3353afa07c2de70bc0810d2d2dfe2f480bf95f356fd87990682362f4e7b9ce7ac0d836599325734567e4
7
+ data.tar.gz: 54724b1082071e52f8217a6eb9aa35e37f7adcead4111c7c9dedf071455b258868355f2c90f1301d43c64be7d5a89cae46a4a71a3977053f9218f974c9c15b6f
@@ -0,0 +1,39 @@
1
+ <!DOCTYPE html>
2
+
3
+ {% if site.lang %}
4
+ <html lang="{{ site.lang }}">
5
+ {% endif %}
6
+
7
+ <head>
8
+
9
+ <meta name="viewport" content="width=device-width, initial-scale=1">
10
+
11
+ {% if page.title %}
12
+ <title>{{ page.title }}</title>
13
+ {% else if site.name %}
14
+ <title>{{ site.name }}</title>
15
+ {% endif %}
16
+
17
+ {% if site.compression.favicon %}
18
+ <link rel="icon" type="image/png" sizes="32x32" href="{{ site.url }}/{{ site.favicon }}">
19
+ {% else %}
20
+ <link rel="icon" href="data:,">
21
+ {% endif %}
22
+
23
+ {% if site.compression.icon %}
24
+ <link rel="shortcut icon" type="image/png" href="{{ site.compression.icon }}">
25
+ <link rel="shortcut icon" sizes="192x192" href="{{ site.compression.icon }}">
26
+ <link rel="apple-touch-icon" href="{{ site.compression.icon }}">
27
+ {% endif %}
28
+
29
+ <!-- include seo if enabled -->
30
+ {% if site.compression.seo %}
31
+ {% include seo.html %}
32
+ {% endif %}
33
+
34
+ <!-- include image styling if enabled and page is post -->
35
+ {% if site.compression.css and page.layout == "post" %}
36
+ <style>img{max-width:100%;height:auto}</style>
37
+ {% endif %}
38
+
39
+ </head>
@@ -0,0 +1,6 @@
1
+ {% capture words %}
2
+ {{ content | number_of_words | minus: 180 }}
3
+ {% endcapture %}
4
+ {% unless words contains '-' %}
5
+ {{ words | plus: 150 | divided_by: 150 | append: ' minutes to read.' }}
6
+ {% endunless %}
@@ -0,0 +1,38 @@
1
+ <!-- metadata -->
2
+ <meta charset="utf-8">
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
+
5
+ <meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
6
+
7
+ <link rel="alternate" type="application/rss+xml" title="{{ site.name }}" href="{{ "/feed.xml" | prepend: site.url }}">
8
+ <link rel="sitemap" type="application/xml" title="Sitemap" href="{{ "/sitemap.xml" | prepend: site.url }}" />
9
+ <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.url }}">
10
+
11
+ <!-- Google site verification -->
12
+ <meta name="google-site-verification" content="{{ site.google-site-verification }}" />
13
+
14
+ <!-- Facebook integration -->
15
+ <meta property="og:title" content="{{ page.title }}"/>
16
+ {% if page.image %}<meta property="og:image" content="{{ page.image | prepend: site.url }}"/>{% endif %}
17
+ <meta property="og:url" content="{{ page.url | prepend: site.url }}"/>
18
+ <meta property="og:type" content="article">
19
+ <meta property="og:site_name" content="{{ site.name }}"/>
20
+ <meta property="og:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}"/>
21
+
22
+ <!-- Twitter integration -->
23
+ <meta name="twitter:card" content="summary">
24
+ <!-- find twitter url in social-urls list -->
25
+ {% if site.compression.social-urls %}
26
+ {% for link in site.social-urls %}
27
+ <!-- if "twitter.com" in link url -->
28
+ {% if link.url contains "twitter.com" %}
29
+ <meta name="twitter:site" content="{{ site.twitter_url }}">
30
+ <!-- breakout of for loop -->
31
+ {% break %}
32
+ {% endif %}
33
+ {% endfor %}
34
+ {% endif %}
35
+ <meta name="twitter:title" content="{{ page.title }}" />
36
+ {% if page.image %}<meta name="twitter:image" content="{{ site.url }}{{ page.image }}" />{% endif %}
37
+ <meta name="twitter:url" content="{{ site.url }}{{ page.url }}" />
38
+ <meta name="twitter:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}" />
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: featherweight
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.6'
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Smith
@@ -123,6 +123,9 @@ extra_rdoc_files: []
123
123
  files:
124
124
  - LICENSE
125
125
  - README.md
126
+ - _includes/header.html
127
+ - _includes/reading-time.html
128
+ - _includes/seo.html
126
129
  - _layouts/compress.html
127
130
  - _layouts/default.html
128
131
  - _layouts/post.html