alembic-jekyll-theme 3.0.4 → 3.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -3
- data/_includes/post-meta.html +2 -1
- data/_includes/site-before-end.html +1 -0
- data/_includes/site-before-start.html +1 -0
- data/_layouts/default.html +4 -0
- data/assets/manifest.json +1 -0
- data/assets/scripts/sw.js +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc75e14ab043913a437f472d2c01664d495d8dbc
|
4
|
+
data.tar.gz: b800c6c5ea7716ceea540644f1de08b3cb94833d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f73c0e4fa9daedca244d5316943481d9320bb7478156784e8a2fd1e0ca9e929c86be238e9e825c4a15559502b74772f2d998e54e093c5386d22cb7fc1dd689f
|
7
|
+
data.tar.gz: fe51f7aef4c466d55dc31e3a8c5e63fb6c8456fd5c68863a0bd6ae655524a8b5786e9911d3177df98671558e98e2a0f68e031430cdf91a84581d438754bc9f50
|
data/README.md
CHANGED
@@ -65,9 +65,13 @@ Here are a few examples of Alembic out in the wild being used in a variety of wa
|
|
65
65
|
|
66
66
|
To give you a running start I've put together some starter kits that you can download, fork or even deploy immediately:
|
67
67
|
|
68
|
-
- Vanilla Jekyll starter kit
|
69
|
-
|
70
|
-
-
|
68
|
+
- Vanilla Jekyll starter kit:
|
69
|
+
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/daviddarnes/alembic-kit)
|
70
|
+
- Forestry starter kit:
|
71
|
+
[![Deploy to Forestry](https://assets.forestry.io/import-to-forestry.svg)](https://app.forestry.io/quick-start?repo=daviddarnes/alembic-forestry-kit&engine=jekyll)
|
72
|
+
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/daviddarnes/alembic-forestry-kit)
|
73
|
+
- Netlify CMS starter kit:
|
74
|
+
[![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)
|
71
75
|
|
72
76
|
- GitHub Pages with remote theme kit - **[Download kit](https://github.com/daviddarnes/alembic-kit/archive/remote-theme.zip)**
|
73
77
|
|
@@ -121,6 +125,9 @@ You'll need to change the `description`, `title` and `url` to match with the pro
|
|
121
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
127
|
|
128
|
+
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
|
+
`date_format: "%-d %B %Y" # NOTE: only placeholder formatting is supported (do not try to use ordinal dates introduced in Jekyll 3.8)`
|
130
|
+
|
124
131
|
### Site performance settings
|
125
132
|
|
126
133
|
Alembic comes with a couple of options to enhance the speed and overall performance of the site you build upon it.
|
@@ -237,6 +244,11 @@ Example usage: `{% include site-search.html %}`
|
|
237
244
|
|
238
245
|
This include has no options. This include will add a block of javascript to the page and javascript reference in order for the search field to work correctly.
|
239
246
|
|
247
|
+
### `site-before-start.html` & `site-before-end.html`
|
248
|
+
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
|
+
|
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 just before the closing `</head>` tag. If you create a `site-before-end.html` file the contents of the file will be included just before the closing `</body>` tag.
|
251
|
+
|
240
252
|
## Page layouts
|
241
253
|
|
242
254
|
As well as `page`, `post`, `blog`, there are a few alternative layouts that can be used on pages:
|
data/_includes/post-meta.html
CHANGED
@@ -11,5 +11,6 @@
|
|
11
11
|
{% endif %}
|
12
12
|
|
13
13
|
<small class="small post-meta">
|
14
|
-
{
|
14
|
+
{% assign date_format = site.date_format | default: "%d %b %Y" %}
|
15
|
+
{{ categories | append: " · " }}<time datetime="{{ page.date | date_to_xmlschema }}" class="time">{{ page.date | date: date_format }}</time>
|
15
16
|
</small>
|
@@ -0,0 +1 @@
|
|
1
|
+
<!-- Overwrite this file with code you want before the closing </body> tag -->
|
@@ -0,0 +1 @@
|
|
1
|
+
<!-- Overwrite this file with code you want before the closing </head> tag -->
|
data/_layouts/default.html
CHANGED
@@ -33,6 +33,8 @@
|
|
33
33
|
{% if site.avatarurl %}{% include site-favicons.html %}{% endif %}
|
34
34
|
|
35
35
|
{% if site.google_analytics %}{% include site-analytics.html %}{% endif %}
|
36
|
+
|
37
|
+
{% include site-before-start.html %}
|
36
38
|
</head>
|
37
39
|
|
38
40
|
<body class="layout-{{ page.layout }}{% if page.title %} {{ page.title | slugify }}{% endif %}">
|
@@ -41,6 +43,8 @@
|
|
41
43
|
{{ content }}
|
42
44
|
|
43
45
|
{% if site.service_worker != false %}{% include site-sw.html %}{% endif %}
|
46
|
+
|
47
|
+
{% include site-before-end.html %}
|
44
48
|
</body>
|
45
49
|
|
46
50
|
</html>
|
data/assets/manifest.json
CHANGED
data/assets/scripts/sw.js
CHANGED
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: 3.0.
|
4
|
+
version: 3.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Darnes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -179,6 +179,8 @@ files:
|
|
179
179
|
- _includes/post-related.html
|
180
180
|
- _includes/site-analytics.html
|
181
181
|
- _includes/site-aside.html
|
182
|
+
- _includes/site-before-end.html
|
183
|
+
- _includes/site-before-start.html
|
182
184
|
- _includes/site-favicons.html
|
183
185
|
- _includes/site-feature.html
|
184
186
|
- _includes/site-footer.html
|