alembic-jekyll-theme 3.0.4 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf9e2748c6169725b0b06a7fe104dda21b466069
4
- data.tar.gz: e713c1596fef680a23a6404de14b924023c1ae17
3
+ metadata.gz: bc75e14ab043913a437f472d2c01664d495d8dbc
4
+ data.tar.gz: b800c6c5ea7716ceea540644f1de08b3cb94833d
5
5
  SHA512:
6
- metadata.gz: 90f849e9a87280213c45b03a5736dae807ad2cd6feead2b0285f8b72b9c4dd09b99e9a8c8f2981f06ab16c19a50a0c4e7be03fe70506aa2fd8616b6a5a27676d
7
- data.tar.gz: 85debec99a46c0dd31313afed165b5048cbd31aa97758faae198fe9277ad6869354a4854baa2a6b185d3b74fde73139afb1be69bf780fcafb15135df32b2e7e3
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 - [![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/daviddarnes/alembic-kit)
69
- - Forestry starter kit - [![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)
70
- - Netlify CMS starter kit - [![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)
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:
@@ -11,5 +11,6 @@
11
11
  {% endif %}
12
12
 
13
13
  <small class="small post-meta">
14
- {{ categories | append: "&nbsp;&middot;&nbsp;" }}<time datetime="{{ page.date | date_to_xmlschema }}" class="time">{{ page.date | date_to_string }}</time>
14
+ {% assign date_format = site.date_format | default: "%d %b %Y" %}
15
+ {{ categories | append: "&nbsp;&middot;&nbsp;" }}<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 -->
@@ -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
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  permalink: "manifest.json"
3
+ layout: none
3
4
  ---
4
5
  {
5
6
  "lang": "{{ site.lang | default: "en-US" }}",
data/assets/scripts/sw.js CHANGED
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  permalink: "/sw.js"
3
+ layout: none
3
4
  ---
4
5
  const version = '{{ site.time | date: '%Y%m%d%H%M%S' }}';
5
6
  const cacheName = `static::${version}`;
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
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-09-02 00:00:00.000000000 Z
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