featherweight 0.6 → 0.6.1
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/header.html +39 -0
- data/_includes/reading-time.html +6 -0
- data/_includes/seo.html +38 -0
- metadata +4 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1c7a84501abb0700793c092d7c5d00d7d1c3c8fb1d2a1176d87d97e068abc13e
|
|
4
|
+
data.tar.gz: 27589dd3e2807970dc7dffeb5507e8255d1bd1e9b730e77dc89f693f484e3aec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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>
|
data/_includes/seo.html
ADDED
|
@@ -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:
|
|
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
|