jekyll-paspagon 1.0.6 → 1.0.7

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
  SHA1:
3
- metadata.gz: 92fe5badf86afc82ddc43a513650398af335c5e2
4
- data.tar.gz: 6cba2527467cb32d79e60eb781d373e1a80c6407
3
+ metadata.gz: b29c1371d205df17ff591a5e4ff613c3ed3becac
4
+ data.tar.gz: 2d186206b60f14c412892284e6a93f24f879d242
5
5
  SHA512:
6
- metadata.gz: eb497f916d6ab4cccf71648d3313c4e078e4989cf36494efeb3e50ecdd950e264343861d18eafbffff3544f2b6d40458391444543e790e2327f39676ffa7680b
7
- data.tar.gz: 5efb8c3751a8a05b99d9ed7ba1557224433d4e31059cba8b392732779647906064e5a715c802762e3e68e2b330a430815c2ff8284b64f5e7ae0d2f9ab293c880
6
+ metadata.gz: bf28e3327c9900331acaee66480c903eb6c49b28955e35fa06ae16ac2fe14cbdc276c654242f4d4bac3f722900210bd09cf9c169cdb92bc2d6e6411431c13f45
7
+ data.tar.gz: 14058fa35acdf82932c77c7b95c02e51501c77136ca337994d130bb8bbc34bdba641a2b473f7e841e9ca38fb37cd2e78281956e249848adf65cc09c26e138f3c
data/README.md CHANGED
@@ -114,7 +114,13 @@ If you provide a RSS/Atom feed, you may want to ensure that it contains only pos
114
114
 
115
115
  ### Generate full URLs everywhere
116
116
 
117
- If you’re going to sell HTML versions of your posts (which will be hosted on a different domain), you should ensure that links on your website contain the domain. The easiest way to do it is to remove all occurences of `site.url` from the templates (usually in `feed.xml` and `_includes/head.html`) and add the domain to the `baseurl` setting.
117
+ If you’re going to sell HTML versions of your posts (which will be hosted on a different domain), you should ensure that links on your website contain the domain. The easiest way to do it is to remove all occurences of `site.url` from the templates (usually in `feed.xml` and `_includes/head.html`), add the domain to the `baseurl` setting in `_config.yml` and use its old value only when running jekyll serve:
118
+
119
+ ```shell
120
+ jekyll serve --baseurl ''
121
+ ```
122
+
123
+ Remember to run `jekyll build` before each deployment.
118
124
 
119
125
  ## Usage
120
126
 
@@ -110,7 +110,9 @@ def maybe_generate_doc(post, format)
110
110
  FileUtils.mkdir_p(File.dirname(dest_path))
111
111
  if File.exist?(dest_path)
112
112
  source_path = post.path
113
- if File.ctime(source_path) > File.ctime(dest_path)
113
+ # HTML output depends on baseurl parameter which may be specified using command line, so checking change time
114
+ # is not sufficient in this case.
115
+ if format == 'html' || File.ctime(source_path) > File.ctime(dest_path)
114
116
  temp_path = File.join(Dir.tmpdir, Digest::SHA256.hexdigest(dest_path) + '.' + format)
115
117
  generate_doc(post, format, format_config, temp_path)
116
118
  temp_hash = Digest::SHA256.file(temp_path)
@@ -136,7 +138,7 @@ def generate_doc(post, format, format_config, dest_path)
136
138
  case format
137
139
  when 'html'
138
140
  if format_config['paid']
139
- free_dest = post.destination
141
+ free_dest = post.destination(post.site.config['destination'])
140
142
  system("mv #{free_dest} #{dest_path}")
141
143
  post.content = post.data['excerpt'].output
142
144
  post.data['excerpt_only'] = true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-paspagon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Jurewicz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-06 00:00:00.000000000 Z
11
+ date: 2016-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi-xattr