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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 372fc0b8e4b5e3d8f440b8bf4fdd7350c3878ce313e414bc8c7ff3792098f25a
4
- data.tar.gz: 3e8b15b8c20ffe168fcbc500bf64ed8d04c9736c30fdb86262aed1fc171eb9cc
3
+ metadata.gz: 03c3d95079bb8b7b9680475eb861d0fff2edbbe6e7a17d0ae439ceebdb56dce5
4
+ data.tar.gz: 342a697a6561651b786735e20385e386e9b7f7a8718b7225c552260e36e54309
5
5
  SHA512:
6
- metadata.gz: 3b385bbf9710a587bef989294d6b8dfeda6704ae5597602b7e57c248f8d603332c95a183bd079a8af5cfb254f7c6d0aebd92cdaf929717887918c3c813c30b61
7
- data.tar.gz: 41b87fce02d89e515a3b3584b9a42a134ed8087f1ad939c0019696d85446829c9ff8959ef44b25174649908a7eea33ca6f490e96f641d01986e77628b695c77a
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
- | _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. |
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) |
@@ -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="font-family:sans-serif;max-width:18cm;padding:8mm 16mm;text-align:justify;text-justify:inter-word;">
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 }}/" style="position:absolute;top:0;left:0;">Home</a>
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.1
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