jekyll-turbolinks 0.0.2 → 0.0.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: 0b5f36d635ae0a8156953ccb3a35af3d993b261c1f2a28e6582ba11b09141bec
4
- data.tar.gz: ed2d851f942b6e071cbc992c26b52a22a05bfd7c186ce94fd1b20893e42c434c
3
+ metadata.gz: 3ff7e1d4641c7d915d11babb9b0ced025e819ae374959925d74d21f8faf049db
4
+ data.tar.gz: 212fb5b83456f9c1ceb8aca61cef767507b8d83bb15765a35f9f0abb05c96e6b
5
5
  SHA512:
6
- metadata.gz: 2ade780344f3c9e4d70d65f9d30deb7c6c4a69d8ff9a701e9963c9c1a09ca64daa6f1b62278e5930f239ba4af89ed3a234e99fcde0e4dd5524498289c9d1e116
7
- data.tar.gz: 7336b0ece929bcf8caac2e4332dbca65f142cc6627793b4639a6017dce32b98e618f1bd62860fd7310fedff8c5b864af4eeaba01e7ea32fd0a43da175640b66b
6
+ metadata.gz: e6b673c9cc63041c7ffbf6befb808f0fca14d066db2251356c603032dde22cfda2c6ba5bdfc5687c331b346f92f52e8c22e40df8a7168ec588f0409e3243faae
7
+ data.tar.gz: 1d56a62c104fb06e37ae779705c9b2e2ebbdf6e4d1827b52caddc85d2a611b43d97723b31bafd47cfd3ce6e248882cc2d59c0a565497e689cdaec17859e61f62
data/README.md CHANGED
@@ -32,6 +32,15 @@ turbolinks:
32
32
  url: turbolinks.js
33
33
  ```
34
34
 
35
+ You can also control if you want a page to have turbolinks disabled by
36
+ adding this to its front matter:
37
+
38
+ ```yaml
39
+ ---
40
+ turbolinks: false
41
+ ---
42
+ ```
43
+
35
44
  ### Automatic
36
45
 
37
46
  That's it! Turbolinks will be loaded and enabled by default.
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = 'jekyll-turbolinks'
8
- gem.version = '0.0.2'
8
+ gem.version = '0.0.3'
9
9
  gem.authors = ['Sutty']
10
10
  gem.email = ['hi@sutty.nl']
11
11
  gem.description = <<~DESC
@@ -51,6 +51,7 @@ Jekyll::Hooks.register :site, :post_render do |site|
51
51
  # Process each file and add the script
52
52
  site.each_site_file do |file|
53
53
  next unless file.respond_to? :output
54
+ next unless file.data.fetch('turbolinks', true)
54
55
 
55
56
  file.output
56
57
  .gsub! %r{</head>},
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-turbolinks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sutty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-03 00:00:00.000000000 Z
11
+ date: 2019-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll