featherweight 0.6 → 0.6.1

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: 1c7a84501abb0700793c092d7c5d00d7d1c3c8fb1d2a1176d87d97e068abc13e
4
+ data.tar.gz: 27589dd3e2807970dc7dffeb5507e8255d1bd1e9b730e77dc89f693f484e3aec
5
5
  SHA512:
6
- metadata.gz: e32bd724f3163e2d939742c805f357d0229d39a41aa73e2068b9ab54deca09d91c690a928f2233d08f9bf78b31e7603e3bb1125f4b2d6ee9f97d3efc6d65c9ae
7
- data.tar.gz: 6e2d6c7d4d04e7e7a07a6e2547a3f45350c8c17d64030ce24c76cfceb2f32b8b3926e84b17792a5c07348516e5c7ed5bb667d15a2d0cf297efbb446ace745ad2
6
+ metadata.gz: 7f33c3c20d452b0cc8c387ef6d94e481ae9e2e3b84e504babb6f70931d894352298325e523e77f1d32af3f4348eb6e3f91e5fab6fa2b41ebc181bf082d2db265
7
+ data.tar.gz: 9e4aa2c11cb207346547af0c1b442d3121aae9fff9effe9938866b8bac3cad1bab35ee9c878587ae8fb50023745d2312d5795b29d3c7ae80235370bd39a26526
@@ -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="/img/icon-192x192.png">
25
+ <link rel="shortcut icon" sizes="192x192" href="/img/icon-192x192.png">
26
+ <link rel="apple-touch-icon" href="/img/icon-192x192.png">
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{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.1
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