featherweight 0.5.1 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -11
- data/_layouts/default.html +4 -2
- data/_layouts/post.html +3 -2
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03c3d95079bb8b7b9680475eb861d0fff2edbbe6e7a17d0ae439ceebdb56dce5
|
4
|
+
data.tar.gz: 342a697a6561651b786735e20385e386e9b7f7a8718b7225c552260e36e54309
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7216a6585415c21bebe5a40d3858529ac49e6745ff83d938289caa3441c9835dbebe9b7cbbde0e6b92708b1633adff34c43c896b813c66ea49b2b779f5d4a1c8
|
7
|
+
data.tar.gz: 33391869578680845b6d0ed652580f2c5c972c96b77570f5291d1040918f14db43b06c01b35dbf7a7238a3965bc114b3bcb3934cf4f173be4eb24bb3b9c1911e
|
data/README.md
CHANGED
@@ -4,15 +4,6 @@
|
|
4
4
|
|
5
5
|
[ruby-gems]: https://rubygems.org/gems/featherweight
|
6
6
|
|
7
|
-
|
8
|
-
#### Replacing X with Y
|
9
|
-
|
10
|
-
|X|Y|
|
11
|
-
|:--:|:--:|
|
12
|
-
|Blog search|`ctrl+f`|
|
13
|
-
|Post styling|[Reader view](https://support.mozilla.org/en-US/kb/firefox-reader-view-clutter-free-web-pages)|
|
14
|
-
|Sharing links|_Copy/paste the URL_|
|
15
|
-
|
16
7
|
#### Building on GitHub
|
17
8
|
|
18
9
|
If you're using this site on GitHub pages, the built-in build action won't run gems outside of the [supported plugins list](https://pages.github.com/versions/), e.g.: the `jekyll-loading-lazy` gem (which adds `loading="lazy"` tags to `iframes` and `img` tags, enabling faster initial page loads).
|
@@ -46,5 +37,5 @@ When naming blog post files, use the `YYYY-MM-DD-title.md` convention, or else y
|
|
46
37
|
| _RSS_ | The RSS feed can be found at <https://yourgithubusername.github.io/feed>. |
|
47
38
|
| _Sitemap_ | The sitemap can be found at <https://yourgithubusername.github.io/sitemap>. |
|
48
39
|
| _Quickstart_ | Test your website locally by following the [Jekyll quickstart guide](https://jekyllrb.com/docs/). |
|
49
|
-
|
|
50
|
-
|
40
|
+
| _gzip compression_ | Files are compressed using [Zopfli](https://github.com/philnash/jekyll-zopfli) compression. GitHub GZip's files automatically before serving, but we can use more aggressive pre-compression to achieve better compression, and avoid server overhead to compress on-the-fly. Support seems to vary between browsers, and some will fallback to `.html`. |
|
41
|
+
| _Brotli compression_ | We also compress files using Google's [Brotli](https://en.wikipedia.org/wiki/Brotli) algorithm. We serve `.gz` and `.html` as fallback, although `.br` [has good support](https://caniuse.com/brotli) |
|
data/_layouts/default.html
CHANGED
@@ -3,7 +3,7 @@ layout: compress
|
|
3
3
|
---
|
4
4
|
<!DOCTYPE html>
|
5
5
|
|
6
|
-
<title>{{ site.name }}</title>
|
6
|
+
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.name }}{% endif %}</title>
|
7
7
|
|
8
8
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
9
9
|
<link rel="alternate" type="application/rss+xml" title="{{ site.name }}" href="{{ site.url }}/feed.xml" />
|
@@ -15,7 +15,9 @@ layout: compress
|
|
15
15
|
{% endif %}
|
16
16
|
|
17
17
|
{% if site.compression.styling %}
|
18
|
-
<body style="
|
18
|
+
<body style="max-width:80ch;padding:3em 1em;margin:auto;line-height:1.6;font-size:1.25em;font-family:sans-serif;">
|
19
19
|
{% endif %}
|
20
20
|
|
21
21
|
{{ content }}
|
22
|
+
|
23
|
+
</body>
|
data/_layouts/post.html
CHANGED
@@ -2,13 +2,14 @@
|
|
2
2
|
layout: default
|
3
3
|
---
|
4
4
|
{% if site.compression.menu %}
|
5
|
-
<a href="{{ site.url }}
|
5
|
+
<a href="{{ site.url }}" style="position:absolute;top:0;left:0;margin:1em;color:inherit;font-size:1em;">Return home</a>
|
6
6
|
{% endif %}
|
7
7
|
|
8
8
|
<b>{{ page.title }}</b><br><i> Written on {{ page.date | date: "%B %e, %Y" }} </i>
|
9
|
+
|
9
10
|
{{ content }}
|
10
11
|
|
11
12
|
{% if site.compression.footer %}
|
12
13
|
<hr>
|
13
|
-
<p style="font-family:monospace;">{% for link in site.personals %}{{ link.name }}: <a href="{{ link.url }}">{{ link.url }}</a><br>{% endfor %}
|
14
|
+
<p style="font-family:monospace;">{% for link in site.personals %}{{ link.name }}: <a href="{{ link.url }}">{{ link.url }}</a><br>{% endfor %}</p>
|
14
15
|
{% 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.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zachary Smith
|
@@ -114,6 +114,20 @@ dependencies:
|
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '2.5'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: jekyll-brotli
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '2.3'
|
124
|
+
type: :runtime
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '2.3'
|
117
131
|
description:
|
118
132
|
email:
|
119
133
|
- zachsmith.dev@gmail.com
|