alembic-jekyll-theme 3.0.12 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +17 -21
- data/_includes/nav-footer.html +5 -5
- data/_includes/nav-header.html +5 -5
- data/_includes/nav-share.html +18 -17
- data/_includes/nav-social.html +6 -4
- data/_includes/site-analytics.html +3 -0
- data/_includes/site-favicons.html +3 -3
- data/_includes/site-icons.svg +0 -1
- data/_includes/site-search.html +2 -2
- data/_includes/site-styles.html +4 -3
- data/_layouts/default.html +1 -0
- data/_sass/_settings.scss +1 -1
- data/assets/.gitignore +1 -0
- data/assets/manifest.json +3 -2
- data/assets/scripts/sw.js +7 -5
- metadata +27 -55
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4cb8ca79cd732609cbebc2ca85412ac04665804ee3069cefd1863dc796357b84
|
4
|
+
data.tar.gz: ffcaf7bba29ae527cdcc74530f41296cea84a4ea523486a30ed388a7c193ae90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a12028d03d74df0c9e5481a5e45b1c1afdde6b95a1c96bd205a6af4343bc18798e25f2dd53b161c1974ebdaaee6b49f960d001730210ed0a30a660188724675f
|
7
|
+
data.tar.gz: a54c653d586f425f26a95affb885a8d9687efdd4ba18f6289f92ad924294af80147674ae41a1a064367f411e2a05a1446fa2847a443f6aa6c5d10b47dbe6c2a7
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
![Screenshot](https://raw.githubusercontent.com/daviddarnes/alembic/master/screenshot.png)
|
7
7
|
|
8
|
-
[
|
8
|
+
[<img src="https://cdn.buymeacoffee.com/buttons/default-yellow.png" width="217"/>](https://buymeacoffee.com/daviddarnes#support)
|
9
9
|
|
10
10
|
## Contents
|
11
11
|
- [About](#about)
|
@@ -25,12 +25,12 @@
|
|
25
25
|
|
26
26
|
## About
|
27
27
|
|
28
|
-
**Alembic is a starting point for [Jekyll](https://jekyllrb.com/) projects. Rather than starting from scratch, this boilerplate theme is designed to get
|
28
|
+
**Alembic is a starting point for [Jekyll](https://jekyllrb.com/) projects. Rather than starting from scratch, this boilerplate theme is designed to get rolling immediately. Install it, configure it, tweak it, push it.**
|
29
29
|
|
30
30
|
## Features
|
31
31
|
|
32
32
|
- Available as a **theme gem** and **GitHub Pages** theme
|
33
|
-
-
|
33
|
+
- Clear and elegant design that can be used out of the box or as solid starting point
|
34
34
|
- Tested in all major browsers, including **IE and Edge**
|
35
35
|
- Built in **Service Worker** so it can work offline and on slow connections
|
36
36
|
- **Configurable colours** and typography in a single settings file
|
@@ -49,15 +49,10 @@
|
|
49
49
|
|
50
50
|
Here are a few examples of Alembic out in the wild being used in a variety of ways:
|
51
51
|
|
52
|
-
- [
|
53
|
-
- [joelcagedesign.com](https://joelcagedesign.com/)
|
52
|
+
- [billmei.net](https://billmei.net/)
|
54
53
|
- [bawejakunal.github.io](https://bawejakunal.github.io/)
|
55
|
-
- [case2111.github.io](
|
56
|
-
- [
|
57
|
-
- [hrkeni.me](http://hrkeni.me/)
|
58
|
-
- [ccs17.bsc.es](https://ccs17.bsc.es/)
|
59
|
-
- [karateca.org](http://www.karateca.org/)
|
60
|
-
- [p-recs.github.io](https://p-recs.github.io/2018/)
|
54
|
+
- [case2111.github.io](https://case2111.github.io/)
|
55
|
+
- [karateca.org](https://www.karateca.org/)
|
61
56
|
|
62
57
|
## Installation
|
63
58
|
|
@@ -74,6 +69,8 @@ To give you a running start I've put together some starter kits that you can dow
|
|
74
69
|
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/daviddarnes/alembic-netlifycms-kit&stack=cms)
|
75
70
|
|
76
71
|
- GitHub Pages with remote theme kit - **[Download kit](https://github.com/daviddarnes/alembic-kit/archive/remote-theme.zip)**
|
72
|
+
- Stackbit starter kit:
|
73
|
+
[![Create with Stackbit](https://assets.stackbit.com/badge/create-with-stackbit.svg)](https://app.stackbit.com/create?theme=https://github.com/daviddarnes/alembic-stackbit-kit)
|
77
74
|
|
78
75
|
### As a Jekyll theme
|
79
76
|
|
@@ -123,7 +120,7 @@ There are a number of optional settings for you to configure. Use the example [`
|
|
123
120
|
|
124
121
|
You'll need to change the `description`, `title` and `url` to match with the project. You'll also need to replace the logos, default social and default offline images in the `/assets/` directory with your own graphics. Setting the site language can be done with `lang`, the theme will default to `en-US`. The `email` needs to be changed to the email you want to receive contact form enquires with. The `disqus` value can be changed to your project username on [Disqus](https://disqus.com), remove this from the `/_config.yml` file if you don't want comments enabled. Look for the `Site settings` comment within the `/_config.yml` file. The `repo` setting is optional, for now, and can be removed entirely, if you wish.
|
125
122
|
|
126
|
-
Google Analytics can be enabled via the site configuration too. Add your tracking ID to the `/_config.yml` file in the following method: `google_analytics: 'UA-XXXXXXXX-1'`
|
123
|
+
Google Analytics can be enabled via the site configuration too. Add your tracking ID to the `/_config.yml` file in the following method: `google_analytics: 'UA-XXXXXXXX-1'`. By default all IPs of site visitors are anonymous to maintain a level of privacy for the audience. If you wish to turn this off set the `google_analytics_anonymize_ip` key to `false`.
|
127
124
|
|
128
125
|
Date format can be customised in the `/_config.yml` with the option `date_format` (please refer to Liquid date filters documentation for learning about formatting possibilities):
|
129
126
|
`date_format: "%-d %B %Y" # NOTE: only placeholder formatting is supported (do not try to use ordinal dates introduced in Jekyll 3.8)`
|
@@ -132,9 +129,9 @@ Date format can be customised in the `/_config.yml` with the option `date_format
|
|
132
129
|
|
133
130
|
Alembic comes with a couple of options to enhance the speed and overall performance of the site you build upon it.
|
134
131
|
|
135
|
-
By default the built in Service Worker is enabled, and will work on a 'network first' method.
|
132
|
+
By default the built in Service Worker is enabled, and will work on a 'network first' method. Meaning if there's no internet connection the content the Service Worker has cached will be used until the connection comes back. It will always look for a live version of the code first. To disable the Service Worker add an option called `service_worker` with a value of `false` in the `/_config.yml` file.
|
136
133
|
|
137
|
-
Another option to speed up Alembic is to enable inline CSS, which is off by default. You can enable this by setting `css_inline: true` inside your `/_config.yml` file.
|
134
|
+
Another option to speed up Alembic is to enable inline CSS, which is off by default. You can enable this by setting `css_inline: true` inside your `/_config.yml` file. By switching to inline styles you bypass the use `/assets/styles.scss`, any custom styles will need to be added in `/_includes/site-styles.html` or in a new custom file.
|
138
135
|
|
139
136
|
Please note that these options aren't a "silver bullet" for making your site faster, make sure to audit and debug your site to get the best performance for your situation.
|
140
137
|
|
@@ -149,7 +146,7 @@ There are a total of 4 different navigation types:
|
|
149
146
|
|
150
147
|
All navigations can be edited using the `_config.yml` file. To see example usage either look for the `Site navigation` comment within the `/_config.yml` file or see [the nav-share.html include](#nav-sharehtml).
|
151
148
|
|
152
|
-
If there are no items for the `navigation_header` or `navigation_footer`, they will fallback to a list of pages within the site. The `social_navigation` properties should either be one that is already in the list (so `Twitter` or `Facebook`) or
|
149
|
+
If there are no items for the `navigation_header` or `navigation_footer`, they will fallback to a list of pages within the site. The `social_navigation` properties should either be one that is already in the list (so `Twitter` or `Facebook`) or a regular `link`, this is so an icon can be set for the link.
|
153
150
|
|
154
151
|
## Using includes
|
155
152
|
|
@@ -197,17 +194,16 @@ Available options:
|
|
197
194
|
``` yml
|
198
195
|
Twitter: "#1DA1F2"
|
199
196
|
facebook: "#3B5998"
|
200
|
-
Google+: "#DC4E41"
|
201
197
|
Pinterest: "#BD081C"
|
202
198
|
LinkedIn: "#0077B5"
|
203
199
|
tumblr: "#36465D"
|
204
200
|
Reddit: "#FF4500"
|
205
|
-
|
206
|
-
|
207
|
-
Email:
|
201
|
+
HackerNews: "#ff6600"
|
202
|
+
DesignerNews: "#2D72D9"
|
203
|
+
Email: true
|
208
204
|
```
|
209
205
|
|
210
|
-
_The first item is the name of the network (must be one of the ones stated above) and the second is the colour of the button. To remove a button
|
206
|
+
_The first item is the name of the network (must be one of the ones stated above) and the second is the colour of the button. To remove a button remove the line of the same name._
|
211
207
|
|
212
208
|
### `video.html`
|
213
209
|
A YouTube video.
|
@@ -247,7 +243,7 @@ This include has no options. This include will add a block of javascript to the
|
|
247
243
|
### `site-before-start.html` & `site-before-end.html`
|
248
244
|
Optional html includes for adding scripts, css, js or any embed code you wish to add to every page without the need to overwrite the entire `default.html` template.
|
249
245
|
|
250
|
-
**Example usage:** These are different to other includes as they are designed to be overwritten. If you create a `site-before-start.html` file in the `_includes/` the contents of the file will be included
|
246
|
+
**Example usage:** These are different to other includes as they are designed to be overwritten. If you create a `site-before-start.html` file in the `_includes/` the contents of the file will be included immediately before the closing `</head>` tag. If you create a `site-before-end.html` file the contents of the file will be included immediately before the closing `</body>` tag.
|
251
247
|
|
252
248
|
## Page layouts
|
253
249
|
|
data/_includes/nav-footer.html
CHANGED
@@ -3,14 +3,14 @@
|
|
3
3
|
<ul class="list list--nav">
|
4
4
|
{% for item in site.navigation_footer %}
|
5
5
|
|
6
|
-
{% if item
|
7
|
-
{% assign url = item
|
6
|
+
{% if item.url contains '://' %}
|
7
|
+
{% assign url = item.url %}
|
8
8
|
{% else %}
|
9
|
-
{% assign url = item
|
9
|
+
{% assign url = item.url | relative_url %}
|
10
10
|
{% endif %}
|
11
11
|
|
12
|
-
<li class="item item--nav{% if item
|
13
|
-
<a href="{{ url }}">{{ item
|
12
|
+
<li class="item item--nav{% if item.url == page.url %} item--current{% endif %}">
|
13
|
+
<a href="{{ url }}">{{ item.title }}</a>
|
14
14
|
</li>
|
15
15
|
{% endfor %}
|
16
16
|
</ul>
|
data/_includes/nav-header.html
CHANGED
@@ -3,14 +3,14 @@
|
|
3
3
|
<ul class="list list--nav">
|
4
4
|
{% for item in site.navigation_header %}
|
5
5
|
|
6
|
-
{% if item
|
7
|
-
{% assign url = item
|
6
|
+
{% if item.url contains '://' %}
|
7
|
+
{% assign url = item.url %}
|
8
8
|
{% else %}
|
9
|
-
{% assign url = item
|
9
|
+
{% assign url = item.url | relative_url %}
|
10
10
|
{% endif %}
|
11
11
|
|
12
|
-
<li class="item item--nav{% if item
|
13
|
-
<a href="{{ url }}">{{ item
|
12
|
+
<li class="item item--nav{% if item.url == page.url %} item--current{% endif %}">
|
13
|
+
<a href="{{ url }}">{{ item.title }}</a>
|
14
14
|
</li>
|
15
15
|
{% endfor %}
|
16
16
|
</ul>
|
data/_includes/nav-share.html
CHANGED
@@ -1,23 +1,24 @@
|
|
1
1
|
<div class="share">
|
2
2
|
{% for network in site.sharing_links %}
|
3
|
-
{%
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
{% if network[1] != blank %}
|
4
|
+
{% assign name = network[0] %}
|
5
|
+
{% assign id = network[0] | downcase | remove: " " %}
|
6
|
+
{% assign url = site.url | append: site.baseurl | append: page.url %}
|
7
|
+
{% assign color = network[1] %}
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
{
|
19
|
-
{% endcapture %}
|
9
|
+
{% capture share_link %}
|
10
|
+
{%- if id contains "twitter" %}https://twitter.com/intent/tweet/?url={{ url }}&text={{ page.title | uri_escape }}{% if site.twitter.username %}&via={{ site.twitter.username }}{% endif %}{% endif -%}
|
11
|
+
{%- if id contains "facebook" %}https://facebook.com/sharer/sharer.php?u={{ url }}{% endif -%}
|
12
|
+
{%- if id contains "pinterest" %}https://pinterest.com/pin/create/button/?url={{ url }}&description={{ page.title }}&media={{ page.image }}{% endif -%}
|
13
|
+
{%- if id contains "linkedin" %}https://www.linkedin.com/shareArticle?url={{ url }}&title={{ page.title }}&source={{ site.title }}&mini=true{% endif -%}
|
14
|
+
{%- if id contains "tumblr" %}https://tumblr.com/widgets/share/tool?canonicalUrl={{ url }}&tags={{ page.category }}&caption={{ page.title }}{% endif -%}
|
15
|
+
{%- if id contains "reddit" %}https://reddit.com/submit?url={{ url }}&title={{ page.title }}&resubmit=true{% endif -%}
|
16
|
+
{%- if id contains "hackernews" %}https://news.ycombinator.com/submitlink?u={{ url }}&t={{ page.title }}{% endif -%}
|
17
|
+
{%- if id contains "designernews" %}https://www.designernews.co/submit?url={{ url }}&title={{ page.title }}{% endif -%}
|
18
|
+
{%- if id contains "email" %}mailto:?subject={{ page.title }}&body={{ url | prepend: "Hey, check out this: "}}{% endif -%}
|
19
|
+
{% endcapture %}
|
20
20
|
|
21
|
-
|
21
|
+
{% include button.html text=name icon=id link=share_link color=color %}
|
22
|
+
{% endif %}
|
22
23
|
{% endfor %}
|
23
24
|
</div>
|
data/_includes/nav-social.html
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
<nav class="nav nav--social">
|
2
2
|
{% for link in site.social_links %}
|
3
|
-
{%
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
{% if link[1] != blank %}
|
4
|
+
{% assign id = link[0] | downcase %}
|
5
|
+
<a href="{{ link[1] }}">
|
6
|
+
{% include icon.html id=id title=id %}
|
7
|
+
</a>
|
8
|
+
{% endif %}
|
7
9
|
{% endfor %}
|
8
10
|
</nav>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{% if site.favicons %}
|
2
2
|
{% for icon in site.favicons %}
|
3
|
-
<link rel="icon" type="image/png" href="{{ icon[1] }}" sizes="{{ icon[0] }}x{{ icon[0] }}">
|
4
|
-
<link rel="apple-touch-icon" sizes="{{ icon[0] }}x{{ icon[0] }}" href="{{ icon[1] }}">
|
3
|
+
<link rel="icon" type="image/png" href="{{ icon[1] | relative_url }}" sizes="{{ icon[0] }}x{{ icon[0] }}">
|
4
|
+
<link rel="apple-touch-icon" sizes="{{ icon[0] }}x{{ icon[0] }}" href="{{ icon[1] | relative_url }}">
|
5
5
|
{% endfor %}
|
6
6
|
{% endif %}
|
7
|
-
<link rel="shortcut icon" href="{{ site.avatarurl + '?s=32' | default: site.logo }}">
|
7
|
+
<link rel="shortcut icon" href="{{ site.avatarurl + '?s=32' | default: site.logo | relative_url }}">
|
data/_includes/site-icons.svg
CHANGED
@@ -5,7 +5,6 @@
|
|
5
5
|
<symbol id="facebook" viewBox="0 0 16 16"><path d="M15.117 0H.883C.395 0 0 .395 0 .883v14.234c0 .488.395.883.883.883h7.663V9.804H6.46V7.39h2.086V5.607c0-2.066 1.262-3.19 3.106-3.19.883 0 1.642.064 1.863.094v2.16h-1.28c-1 0-1.195.476-1.195 1.176v1.54h2.39l-.31 2.416h-2.08V16h4.077c.488 0 .883-.395.883-.883V.883C16 .395 15.605 0 15.117 0" fill-rule="nonzero"/></symbol>
|
6
6
|
<symbol id="flickr" viewBox="0 0 16 16"><path d="M0 8c0 2.05 1.662 3.71 3.71 3.71 2.05 0 3.713-1.66 3.713-3.71S5.76 4.29 3.71 4.29C1.663 4.29 0 5.95 0 8zm8.577 0c0 2.05 1.662 3.71 3.712 3.71C14.337 11.71 16 10.05 16 8s-1.662-3.71-3.71-3.71c-2.05 0-3.713 1.66-3.713 3.71z"/></symbol>
|
7
7
|
<symbol id="github" viewBox="0 0 16 16"><path d="M8 0C3.58 0 0 3.582 0 8c0 3.535 2.292 6.533 5.47 7.59.4.075.547-.172.547-.385 0-.19-.007-.693-.01-1.36-2.226.483-2.695-1.073-2.695-1.073-.364-.924-.89-1.17-.89-1.17-.725-.496.056-.486.056-.486.803.056 1.225.824 1.225.824.714 1.223 1.873.87 2.33.665.072-.517.278-.87.507-1.07-1.777-.2-3.644-.888-3.644-3.953 0-.873.31-1.587.823-2.147-.083-.202-.358-1.015.077-2.117 0 0 .672-.215 2.2.82.638-.178 1.323-.266 2.003-.27.68.004 1.364.092 2.003.27 1.527-1.035 2.198-.82 2.198-.82.437 1.102.163 1.915.08 2.117.513.56.823 1.274.823 2.147 0 3.073-1.87 3.75-3.653 3.947.287.246.543.735.543 1.48 0 1.07-.01 1.933-.01 2.195 0 .215.144.463.55.385C13.71 14.53 16 11.534 16 8c0-4.418-3.582-8-8-8"/></symbol>
|
8
|
-
<symbol id="google+" viewBox="0 0 16 16"><g><path d="M5.09 7.273v1.745H7.98c-.116.75-.873 2.197-2.887 2.197-1.737 0-3.155-1.44-3.155-3.215S3.353 4.785 5.09 4.785c.99 0 1.652.422 2.03.786l1.382-1.33c-.887-.83-2.037-1.33-3.41-1.33C2.275 2.91 0 5.184 0 8s2.276 5.09 5.09 5.09c2.94 0 4.888-2.065 4.888-4.974 0-.334-.036-.59-.08-.843H5.09zM16 7.273h-1.455V5.818H13.09v1.455h-1.454v1.454h1.455v1.455h1.455V8.727H16"/></g></symbol>
|
9
8
|
<symbol id="hackernews" viewBox="0 0 16 16"><path d="M0 0v16h16V0H0zm8.92 8.96v3H7.25v-3l-2.75-5h1.96l1.66 3.48L9.7 3.96h1.88l-2.66 5z"/></symbol>
|
10
9
|
<symbol id="instagram" viewBox="0 0 16 16"><path d="M8 0C5.827 0 5.555.01 4.702.048 3.85.088 3.27.222 2.76.42c-.526.204-.973.478-1.417.923-.445.444-.72.89-.923 1.417-.198.51-.333 1.09-.372 1.942C.008 5.555 0 5.827 0 8s.01 2.445.048 3.298c.04.852.174 1.433.372 1.942.204.526.478.973.923 1.417.444.445.89.72 1.417.923.51.198 1.09.333 1.942.372.853.04 1.125.048 3.298.048s2.445-.01 3.298-.048c.852-.04 1.433-.174 1.942-.372.526-.204.973-.478 1.417-.923.445-.444.72-.89.923-1.417.198-.51.333-1.09.372-1.942.04-.853.048-1.125.048-3.298s-.01-2.445-.048-3.298c-.04-.852-.174-1.433-.372-1.942-.204-.526-.478-.973-.923-1.417-.444-.445-.89-.72-1.417-.923-.51-.198-1.09-.333-1.942-.372C10.445.008 10.173 0 8 0zm0 1.44c2.136 0 2.39.01 3.233.048.78.036 1.203.166 1.485.276.374.145.64.318.92.598.28.28.453.546.598.92.11.282.24.705.276 1.485.038.844.047 1.097.047 3.233s-.01 2.39-.048 3.233c-.036.78-.166 1.203-.276 1.485-.145.374-.318.64-.598.92-.28.28-.546.453-.92.598-.282.11-.705.24-1.485.276-.844.038-1.097.047-3.233.047s-2.39-.01-3.233-.048c-.78-.036-1.203-.166-1.485-.276-.374-.145-.64-.318-.92-.598-.28-.28-.453-.546-.598-.92-.11-.282-.24-.705-.276-1.485C1.45 10.39 1.44 10.136 1.44 8s.01-2.39.048-3.233c.036-.78.166-1.203.276-1.485.145-.374.318-.64.598-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276C5.61 1.45 5.864 1.44 8 1.44zm0 2.452c-2.27 0-4.108 1.84-4.108 4.108 0 2.27 1.84 4.108 4.108 4.108 2.27 0 4.108-1.84 4.108-4.108 0-2.27-1.84-4.108-4.108-4.108zm0 6.775c-1.473 0-2.667-1.194-2.667-2.667 0-1.473 1.194-2.667 2.667-2.667 1.473 0 2.667 1.194 2.667 2.667 0 1.473-1.194 2.667-2.667 2.667zm5.23-6.937c0 .53-.43.96-.96.96s-.96-.43-.96-.96.43-.96.96-.96.96.43.96.96z"/></symbol>
|
11
10
|
<symbol id="linkedin" viewBox="0 0 16 16"><path d="M13.632 13.635h-2.37V9.922c0-.886-.018-2.025-1.234-2.025-1.235 0-1.424.964-1.424 1.96v3.778h-2.37V6H8.51V7.04h.03c.318-.6 1.092-1.233 2.247-1.233 2.4 0 2.845 1.58 2.845 3.637v4.188zM3.558 4.955c-.762 0-1.376-.617-1.376-1.377 0-.758.614-1.375 1.376-1.375.76 0 1.376.617 1.376 1.375 0 .76-.617 1.377-1.376 1.377zm1.188 8.68H2.37V6h2.376v7.635zM14.816 0H1.18C.528 0 0 .516 0 1.153v13.694C0 15.484.528 16 1.18 16h13.635c.652 0 1.185-.516 1.185-1.153V1.153C16 .516 15.467 0 14.815 0z" fill-rule="nonzero"/></symbol>
|
data/_includes/site-search.html
CHANGED
@@ -49,8 +49,8 @@
|
|
49
49
|
|
50
50
|
field.addEventListener('keyup', displayResults);
|
51
51
|
|
52
|
-
field.addEventListener('
|
53
|
-
if (event.
|
52
|
+
field.addEventListener('keydown', function(event) {
|
53
|
+
if (event.key === 'Enter') {
|
54
54
|
event.preventDefault();
|
55
55
|
}
|
56
56
|
});
|
data/_includes/site-styles.html
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
-
{%
|
2
|
-
|
3
|
-
{%
|
1
|
+
{% capture styles %}
|
2
|
+
@import "alembic";
|
3
|
+
{% endcapture %}
|
4
|
+
<style>{{ styles | scssify | strip_newlines }}</style>
|
data/_layouts/default.html
CHANGED
data/_sass/_settings.scss
CHANGED
data/assets/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
.jekyll-cache/
|
data/assets/manifest.json
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
---
|
2
2
|
permalink: "manifest.json"
|
3
|
-
layout:
|
3
|
+
layout: null
|
4
|
+
sitemap: false
|
4
5
|
---
|
5
6
|
{
|
6
7
|
"lang": "{{ site.lang | default: "en-US" }}",
|
@@ -12,7 +13,7 @@ layout: none
|
|
12
13
|
"icons": [
|
13
14
|
{% for icon in site.favicons %}
|
14
15
|
{
|
15
|
-
"src": "{{ icon[1] }}",
|
16
|
+
"src": "{{ icon[1] | relative_url }}",
|
16
17
|
"sizes": "{{ icon[0] }}x{{ icon[0] }}"
|
17
18
|
}{% if forloop.last != true %},{% endif %}
|
18
19
|
{% endfor %}
|
data/assets/scripts/sw.js
CHANGED
@@ -1,21 +1,23 @@
|
|
1
1
|
---
|
2
2
|
permalink: "/sw.js"
|
3
|
-
layout:
|
3
|
+
layout: null
|
4
|
+
sitemap: false
|
4
5
|
---
|
6
|
+
|
5
7
|
const version = '{{ site.time | date: '%Y%m%d%H%M%S' }}';
|
6
8
|
const cacheName = `static::${version}`;
|
7
9
|
|
8
10
|
const buildContentBlob = () => {
|
9
11
|
return [
|
10
12
|
{%- for post in site.posts limit: 10 -%}
|
11
|
-
"{{ post.url }}",
|
13
|
+
"{{ post.url | relative_url }}",
|
12
14
|
{%- endfor -%}
|
13
15
|
{%- for page in site.pages -%}
|
14
16
|
{%- unless page.url contains 'sw.js' or page.url contains '404.html' -%}
|
15
|
-
"{{ page.url }}",
|
17
|
+
"{{ page.url | relative_url }}",
|
16
18
|
{%- endunless -%}
|
17
19
|
{%- endfor -%}
|
18
|
-
"{{ site.logo }}", "/assets/default-offline-image.png", "/assets/scripts/fetch.js"
|
20
|
+
"{{ site.logo | relative_url }}", "{{ site.baseurl }}/assets/default-offline-image.png", "{{ site.baseurl }}/assets/scripts/fetch.js"
|
19
21
|
]
|
20
22
|
}
|
21
23
|
|
@@ -73,7 +75,7 @@ self.addEventListener("fetch", event => {
|
|
73
75
|
|
74
76
|
if (request.url.match(/\.(jpe?g|png|gif|svg)$/)) {
|
75
77
|
// If url requested is an image and isn't cached, return default offline image
|
76
|
-
offlineAsset = "/assets/default-offline-image.png";
|
78
|
+
offlineAsset = "{{ site.baseurl }}/assets/default-offline-image.png";
|
77
79
|
}
|
78
80
|
|
79
81
|
// For all urls request image from network, then fallback to cache, then fallback to offline page
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alembic-jekyll-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Darnes
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,168 +16,140 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '4.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: jekyll-sitemap
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.4.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.4.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: jekyll-mentions
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.6.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.6.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: jekyll-paginate
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 1.1.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 1.1.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: jekyll-seo-tag
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 2.6.1
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 2.6.1
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: jekyll-redirect-from
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0.
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0.12'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: jekyll-default-layout
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0.1'
|
89
|
+
version: '0.16'
|
104
90
|
type: :runtime
|
105
91
|
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
94
|
- - "~>"
|
109
95
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0.
|
96
|
+
version: '0.16'
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: jekyll-feed
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
114
100
|
requirements:
|
115
101
|
- - "~>"
|
116
102
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0.
|
103
|
+
version: '0.15'
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
107
|
requirements:
|
122
108
|
- - "~>"
|
123
109
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0.
|
110
|
+
version: '0.15'
|
125
111
|
- !ruby/object:Gem::Dependency
|
126
112
|
name: jekyll-commonmark
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
128
114
|
requirements:
|
129
115
|
- - "~>"
|
130
116
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
117
|
+
version: 1.3.1
|
132
118
|
type: :runtime
|
133
119
|
prerelease: false
|
134
120
|
version_requirements: !ruby/object:Gem::Requirement
|
135
121
|
requirements:
|
136
122
|
- - "~>"
|
137
123
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
124
|
+
version: 1.3.1
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: jekyll-include-cache
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
142
128
|
requirements:
|
143
129
|
- - "~>"
|
144
130
|
- !ruby/object:Gem::Version
|
145
|
-
version: '0.
|
131
|
+
version: '0.2'
|
146
132
|
type: :runtime
|
147
133
|
prerelease: false
|
148
134
|
version_requirements: !ruby/object:Gem::Requirement
|
149
135
|
requirements:
|
150
136
|
- - "~>"
|
151
137
|
- !ruby/object:Gem::Version
|
152
|
-
version: '0.
|
138
|
+
version: '0.2'
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: jemoji
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
156
142
|
requirements:
|
157
143
|
- - "~>"
|
158
144
|
- !ruby/object:Gem::Version
|
159
|
-
version: '0.
|
145
|
+
version: '0.12'
|
160
146
|
type: :runtime
|
161
147
|
prerelease: false
|
162
148
|
version_requirements: !ruby/object:Gem::Requirement
|
163
149
|
requirements:
|
164
150
|
- - "~>"
|
165
151
|
- !ruby/object:Gem::Version
|
166
|
-
version: '0.
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: bundler
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '1.14'
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '1.14'
|
152
|
+
version: '0.12'
|
181
153
|
description: A Jekyll boilerplate theme designed to be a starting point for any Jekyll
|
182
154
|
website. Rather than starting from scratch, this boilerplate is designed to get
|
183
155
|
the ball rolling immediately.
|
@@ -237,6 +209,7 @@ files:
|
|
237
209
|
- _sass/sassline-base/_reset.scss
|
238
210
|
- _sass/sassline-base/_typography.scss
|
239
211
|
- _sass/sassline-base/_variables.scss
|
212
|
+
- assets/.gitignore
|
240
213
|
- assets/default-offline-image.png
|
241
214
|
- assets/default-social-image.png
|
242
215
|
- assets/logos/logo.svg
|
@@ -258,7 +231,7 @@ licenses:
|
|
258
231
|
- MIT
|
259
232
|
metadata:
|
260
233
|
plugin_type: theme
|
261
|
-
post_install_message:
|
234
|
+
post_install_message:
|
262
235
|
rdoc_options: []
|
263
236
|
require_paths:
|
264
237
|
- lib
|
@@ -273,9 +246,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
273
246
|
- !ruby/object:Gem::Version
|
274
247
|
version: '0'
|
275
248
|
requirements: []
|
276
|
-
|
277
|
-
|
278
|
-
signing_key:
|
249
|
+
rubygems_version: 3.1.2
|
250
|
+
signing_key:
|
279
251
|
specification_version: 4
|
280
252
|
summary: A Jekyll boilerplate theme designed to be a starting point for any Jekyll
|
281
253
|
website.
|