jekyll-paspagon 1.0.6 → 1.0.7
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 +4 -4
- data/README.md +7 -1
- data/lib/jekyll-paspagon/hooks.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b29c1371d205df17ff591a5e4ff613c3ed3becac
|
4
|
+
data.tar.gz: 2d186206b60f14c412892284e6a93f24f879d242
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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`)
|
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
|
-
|
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.
|
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-
|
11
|
+
date: 2016-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi-xattr
|