quivjek 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/quivjek.rb +6 -2
- data/lib/quivjek/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 495378a161245e782ae43e45d2850b9feb6d782c
|
4
|
+
data.tar.gz: 5376ba809df34201290415cbebea1ff4814bc291
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9bd8d8b2d245b86590b08ff2a820c202c9ebdda9f595497e21fd019c949b6b22ecde8e7370d6ded1e7d6b6ae3dd222cfea7bc2f2415430089c4a558b30c9dc3
|
7
|
+
data.tar.gz: b003c303471ece1b4307a211f4bf8505c80d57eba7462918c039362f43ce41ec25dc7b94a682a8bbe29f02f840d2e822ef0727a2405e7aa3701f3a3fcf415de1
|
data/README.md
CHANGED
@@ -51,6 +51,8 @@ Run `jekyll build` and quivjek will automatically copy your Quiver notes to your
|
|
51
51
|
|
52
52
|
1. When an image is added to a markdown cell, Quiver renames the file and sets the original file name as the image tag's alt attribute. For example the image `big-claw-puppy-on-wood-floor.jpg` becomes `![big-claw-puppy-on-wood-floor.jpg](quiver-image-url/642370E09A291BC1601CFD68B44A5C16.jpg)`. For SEO purposes quivjek reverses this process by renaming the image to whatever is found in your alt tag. Therefore it is recommended your alt tags are lowercase, slug-ified, unique, and end in the image file extension.
|
53
53
|
|
54
|
+
1. You can prevent quivjek from running by setting ENV['APP_ENV'] = 'production'
|
55
|
+
|
54
56
|
## Development
|
55
57
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
56
58
|
|
data/lib/quivjek.rb
CHANGED
@@ -8,8 +8,12 @@ require "front_matter_parser"
|
|
8
8
|
require "yaml"
|
9
9
|
|
10
10
|
Jekyll::Hooks.register :site, :after_init do |site|
|
11
|
-
|
12
|
-
|
11
|
+
|
12
|
+
if (ENV['APP_ENV'] != 'production')
|
13
|
+
q = Quivjek.new(site)
|
14
|
+
q.load_posts_from_quiver
|
15
|
+
end
|
16
|
+
|
13
17
|
end
|
14
18
|
|
15
19
|
class Quivjek
|
data/lib/quivjek/version.rb
CHANGED