featherweight 0.6.3 → 0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -9
- data/_includes/contact.md +5 -0
- data/_includes/header.html +8 -12
- data/_includes/main.css +18 -0
- data/_includes/seo.html +10 -2
- data/_layouts/default.html +24 -2
- data/_layouts/post.html +6 -3
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7dbb1038a51dc2fb7b1c5d83568deb10c1cb07933cfb72d0e5ac7b85442465f
|
4
|
+
data.tar.gz: f74fa821542586a6365f131cfa9204d0010b7a92f23b02abdfb91f4d1e46cc99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d1a74c91380ec196f93dace4d96ae22ae952e9e6a69c4d5438b7440eff32ee6f818b97e63bf9d9a930b4f4122e53b3f0e4d222968d39efaad53f4e6b310db30
|
7
|
+
data.tar.gz: 12d546687d129cba01265d4ccd2197f76e2cc9931281929f6688d88185390ff336c447ae2b0fd5f1c67c4dba4a4e31d94be43221efeb5408f79807e2e8cf9dd9
|
data/README.md
CHANGED
@@ -32,8 +32,9 @@ When naming blog post files, use the `YYYY-MM-DD-title.md` convention, or else y
|
|
32
32
|
|
33
33
|
|||
|
34
34
|
|:--:|:--:|
|
35
|
-
| _Config_ | Update site URL
|
36
|
-
|
|
35
|
+
| _Config_ | Update site URL and othe default options using `_config.yml`. |
|
36
|
+
| _Homepage_ | Customise your homepage by editing the `index.md` file. |
|
37
|
+
| _Social media_ | Update your contact links for your homepage and post footer (optional) by editing `_includes_/contact.md` |
|
37
38
|
| _RSS_ | The RSS feed can be found at <https://yourgithubusername.github.io/feed>. |
|
38
39
|
| _Sitemap_ | The sitemap can be found at <https://yourgithubusername.github.io/sitemap>. |
|
39
40
|
| _Quickstart_ | Test your website locally by following the [Jekyll quickstart guide](https://jekyllrb.com/docs/). |
|
@@ -50,14 +51,17 @@ Many of these are entirely optional settings. If you're looking to create a trul
|
|
50
51
|
|:--:|:--:|
|
51
52
|
| _SEO_ | Enabling search engine optimisations will add metadata for search engines and sharing on social media. |
|
52
53
|
| _Reading time_ | To display an estimated reading time for blog posts. |
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
| _CSS_ | Add some basic styling, based on [58 bytes of CSS to look great nearly everywhere](https://gist.github.com/JoeyBurzynski/617fb6201335779f8424ad9528b72c41). Also add some basic image styling to blog posts, working in combination with `anti-image-reflow` to fit images to the blog width without causing jank. |
|
58
|
-
|
|
54
|
+
| _Load time_ | Show off your page load times in the page footer. (Requires JS) |
|
55
|
+
| _Page size_ | Report the webpage size in bytes, also displayed in the page footer. (Requires JS) |
|
56
|
+
| _Social media footer_ | Display social media links below blog posts. |
|
57
|
+
| _Blog list_ | Toggle the display of your blog list on the homepage. |
|
58
|
+
| _CSS_ | Add some basic styling, based on [58 bytes of CSS to look great nearly everywhere](https://gist.github.com/JoeyBurzynski/617fb6201335779f8424ad9528b72c41). Also add some basic image styling to blog posts, working in combination with `anti-image-reflow` to fit images to the blog width without causing jank. Customise CSS by editing `_includes/main.css`. |
|
59
|
+
| _Favicons_ | Generate icons for your site using [https://realfavicongenerator.net/](https://realfavicongenerator.net/), or disable favicons using `_config.yml` to use a low-byte-count alternative. Change file names or theme colours using `_config.yml`. |
|
59
60
|
|
60
61
|
#### Dev
|
61
62
|
1. Clone this repository: `git clone https://github.com/Cutwell/featherweight.git`
|
62
63
|
2. Download the project dependencies: `bundle install`
|
63
|
-
3. Run a local Jekyll server: `bundle exec jekyll serve`
|
64
|
+
3. Run a local Jekyll server: `bundle exec jekyll serve`
|
65
|
+
|
66
|
+
#### Credit
|
67
|
+
feather by GREY Perspective from <a href="https://thenounproject.com/browse/icons/term/feather/" target="_blank" title="feather Icons">Noun Project</a>
|
data/_includes/header.html
CHANGED
@@ -14,26 +14,22 @@
|
|
14
14
|
<title>{{ site.name }}</title>
|
15
15
|
{% endif %}
|
16
16
|
|
17
|
+
<!-- generate for your own icon using https://realfavicongenerator.net/ -->
|
17
18
|
{% if site.compression.favicon %}
|
18
|
-
<link rel="icon"
|
19
|
+
<link rel="apple-touch-icon" sizes="180x180" href="{{ site.apple-touch-icon | prepend: site.url }}">
|
20
|
+
<link rel="icon" type="image/png" sizes="32x32" href="{{ site.icon-32x32 | prepend: site.url }}">
|
21
|
+
<link rel="icon" type="image/png" sizes="16x16" href="{{ site.icon-64x64 | prepend: site.url }}">
|
22
|
+
<link rel="manifest" href="{{ site.manifest | prepend: site.url }}">
|
23
|
+
<link rel="mask-icon" href="{{ site.mask-icon.href | prepend: site.url }}" color="{{ site.mask-icon.color }}">
|
24
|
+
<meta name="msapplication-TileColor" content="{{ site.msapplication-TileColor }}">
|
25
|
+
<meta name="theme-color" content="{{ site.theme-color }}">
|
19
26
|
{% else %}
|
20
27
|
<link rel="icon" href="data:,">
|
21
28
|
{% endif %}
|
22
29
|
|
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
30
|
<!-- include seo if enabled -->
|
30
31
|
{% if site.compression.seo %}
|
31
32
|
{% include seo.html %}
|
32
33
|
{% endif %}
|
33
34
|
|
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
35
|
</head>
|
data/_includes/main.css
ADDED
data/_includes/seo.html
CHANGED
@@ -4,8 +4,16 @@
|
|
4
4
|
|
5
5
|
<meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
<!-- CSP
|
8
|
+
JS: only allow scripts from the same domain and inline scripts
|
9
|
+
CSS: only allow styles from the same domain and inline styles
|
10
|
+
IMG / MEDIA: allow from any domain
|
11
|
+
-->
|
12
|
+
<meta http-equiv='Content-Security-Policy' content="default-src 'self' ; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' *; media-src 'self' *;">
|
13
|
+
|
14
|
+
<!-- sitemap and rss feed -->
|
15
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.name }}" href="{{ '/feed.xml' | prepend: site.url }}">
|
16
|
+
<link rel="sitemap" type="application/xml" title="Sitemap" href="{{ '/sitemap.xml' | prepend: site.url }}" />
|
9
17
|
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.url }}">
|
10
18
|
|
11
19
|
<!-- Google site verification -->
|
data/_layouts/default.html
CHANGED
@@ -6,12 +6,34 @@ layout: compress
|
|
6
6
|
|
7
7
|
<!-- include page css if enabled -->
|
8
8
|
{% if site.compression.css %}
|
9
|
-
<
|
9
|
+
<style>{% include main.css %}</style>
|
10
10
|
{% endif %}
|
11
11
|
|
12
12
|
{{ content }}
|
13
13
|
|
14
|
+
<!-- add linebreak for homepage styling, but not for posts -->
|
15
|
+
{% if page.layout != 'post' %}
|
16
|
+
<br>
|
17
|
+
{% endif %}
|
18
|
+
|
14
19
|
<!-- add page load time if enabled -->
|
15
20
|
{% if site.compression.load-time %}
|
16
|
-
<
|
21
|
+
<i id="lt" class="d"></i><br>
|
22
|
+
{% endif %}
|
23
|
+
|
24
|
+
<!-- report page size in bytes -->
|
25
|
+
{% if site.compression.page-size %}
|
26
|
+
<i id="ps" class="d"></i>
|
27
|
+
{% endif %}
|
28
|
+
|
29
|
+
<!-- load script tag if JS is needed -->
|
30
|
+
{% if site.compression.page-size or site.compression.load-time %}
|
31
|
+
<script>
|
32
|
+
{% if site.compression.page-size %}
|
33
|
+
document.getElementById("ps").innerHTML="Size: "+document.documentElement.outerHTML.length+" bytes";
|
34
|
+
{% endif %}
|
35
|
+
{% if site.compression.load-time %}
|
36
|
+
window.onload=function(){document.getElementById("lt").innerHTML="Load time: "+(window.performance.timing.domContentLoadedEventEnd-window.performance.timing.navigationStart)+"ms"};
|
17
37
|
{% endif %}
|
38
|
+
</script>
|
39
|
+
{% endif %}
|
data/_layouts/post.html
CHANGED
@@ -7,11 +7,14 @@ layout: default
|
|
7
7
|
|
8
8
|
<h1>{{ page.title }}</h1>
|
9
9
|
<i>Written on {{ page.date | date: "%B %e, %Y" }}</i>
|
10
|
-
<br><i>{% include reading-time.html %}</i>
|
10
|
+
<br><i class="d">{% include reading-time.html %}</i>
|
11
11
|
|
12
12
|
{{ content }}
|
13
13
|
|
14
|
-
{% if site.compression.footer %}
|
14
|
+
{% if site.compression.footer or site.compression.load-time or site.compression-page-size %}
|
15
15
|
<br><hr>
|
16
|
-
|
16
|
+
{% endif %}
|
17
|
+
{% if site.compression.footer %}
|
18
|
+
{% capture contact %}{% include contact.md %}{% endcapture %}
|
19
|
+
{{ contact | markdownify }}
|
17
20
|
{% endif %}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: featherweight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.7'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zachary Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -123,7 +123,9 @@ extra_rdoc_files: []
|
|
123
123
|
files:
|
124
124
|
- LICENSE
|
125
125
|
- README.md
|
126
|
+
- _includes/contact.md
|
126
127
|
- _includes/header.html
|
128
|
+
- _includes/main.css
|
127
129
|
- _includes/reading-time.html
|
128
130
|
- _includes/seo.html
|
129
131
|
- _layouts/compress.html
|