This repository was archived by the owner on Sep 27, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,26 @@ Be sure to know your reasons when using it.
7
7
8
8
h2. Installation
9
9
10
- Set the variable @PATH_TO_JEKYLL_SITE@ correctly and run these commands accordingly:
10
+ Set the constant @PATH_TO_JEKYLL_SITE@ correctly and run these commands accordingly:
11
11
12
12
pre. echo "gem 'jekyll_image_encode'" >> $PATH_TO_JEKYLL_SITE/Gemfile
13
13
bundle
14
14
echo "require 'jekyll_image_encode'" >> $PATH_TO_JEKYLL_SITE/_plugins/ext.rb
15
15
16
16
17
+ *Alternatively* you may accomplish the same without @echo@ and @bundle@:
18
+
19
+ # Install the plugin by running @gem install jekyll_image_encode@
20
+ # Add the line @require 'jekyll_image_encode'@ to *./_plugins/ext.rb*
21
+
22
+
17
23
h2. Usage
18
24
19
25
In the source attribute of an HTML *img* element, call the *base64-tag* providing the image URL as the only parameter:
20
26
21
- pre. <img src="{% base64 http://example.org/image.png %}" />
27
+ pre. <img src="{% base64 http://example.org/image.png %}" />
28
+
29
+
30
+ h2. License
31
+
32
+ Jekyll Image Embed is released under the "MIT License":http://www.opensource.org/licenses/MIT.
You can’t perform that action at this time.
0 commit comments