1
0
Fork 0

Add jekyll-assets plugin

This commit is contained in:
Daniel Kempkens 2015-01-16 14:21:12 +01:00
parent 50f669f892
commit 4221573944
15 changed files with 48 additions and 6 deletions

View file

@ -1,3 +1,8 @@
source 'https://rubygems.org' source 'https://rubygems.org'
gem 'jekyll', '~> 2.5.3' gem 'jekyll', '~> 2.5.3'
group :extensions do
gem 'jekyll-assets', '~> 0.12.1'
gem 'yui-compressor', '~> 0.12.0'
end

View file

@ -1,6 +1,7 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
addressable (2.3.6)
blankslate (2.1.2.4) blankslate (2.1.2.4)
celluloid (0.16.0) celluloid (0.16.0)
timers (~> 4.0.0) timers (~> 4.0.0)
@ -13,7 +14,10 @@ GEM
colorator (0.1) colorator (0.1)
execjs (2.2.2) execjs (2.2.2)
fast-stemmer (1.0.2) fast-stemmer (1.0.2)
fastimage (1.6.6)
addressable (~> 2.3, >= 2.3.5)
ffi (1.9.6) ffi (1.9.6)
hike (1.2.3)
hitimes (1.2.2) hitimes (1.2.2)
jekyll (2.5.3) jekyll (2.5.3)
classifier-reborn (~> 2.0) classifier-reborn (~> 2.0)
@ -30,6 +34,13 @@ GEM
redcarpet (~> 3.1) redcarpet (~> 3.1)
safe_yaml (~> 1.0) safe_yaml (~> 1.0)
toml (~> 0.1.0) toml (~> 0.1.0)
jekyll-assets (0.12.1)
fastimage (~> 1.6)
jekyll (~> 2.0)
sass (~> 3.2)
sprockets (~> 2.10)
sprockets-helpers
sprockets-sass
jekyll-coffeescript (1.0.1) jekyll-coffeescript (1.0.1)
coffee-script (~> 2.2) coffee-script (~> 2.2)
jekyll-gist (1.1.0) jekyll-gist (1.1.0)
@ -45,26 +56,42 @@ GEM
rb-fsevent (>= 0.9.3) rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9) rb-inotify (>= 0.9)
mercenary (0.3.5) mercenary (0.3.5)
multi_json (1.10.1)
parslet (1.5.0) parslet (1.5.0)
blankslate (~> 2.0) blankslate (~> 2.0)
posix-spawn (0.3.9) posix-spawn (0.3.9)
pygments.rb (0.6.0) pygments.rb (0.6.0)
posix-spawn (~> 0.3.6) posix-spawn (~> 0.3.6)
yajl-ruby (~> 1.1.0) yajl-ruby (~> 1.1.0)
rack (1.6.0)
rb-fsevent (0.9.4) rb-fsevent (0.9.4)
rb-inotify (0.9.5) rb-inotify (0.9.5)
ffi (>= 0.5.0) ffi (>= 0.5.0)
redcarpet (3.2.2) redcarpet (3.2.2)
safe_yaml (1.0.4) safe_yaml (1.0.4)
sass (3.4.9) sass (3.4.9)
sprockets (2.12.3)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-helpers (1.1.0)
sprockets (~> 2.0)
sprockets-sass (1.3.1)
sprockets (~> 2.0)
tilt (~> 1.1)
tilt (1.4.1)
timers (4.0.1) timers (4.0.1)
hitimes hitimes
toml (0.1.2) toml (0.1.2)
parslet (~> 1.5.0) parslet (~> 1.5.0)
yajl-ruby (1.1.0) yajl-ruby (1.1.0)
yui-compressor (0.12.0)
PLATFORMS PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
jekyll (~> 2.5.3) jekyll (~> 2.5.3)
jekyll-assets (~> 0.12.1)
yui-compressor (~> 0.12.0)

View file

Before

Width:  |  Height:  |  Size: 228 KiB

After

Width:  |  Height:  |  Size: 228 KiB

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View file

@ -0,0 +1,5 @@
/*
*= require poole
*= require syntax
*= require hyde
*/

View file

@ -27,6 +27,10 @@ include: [".htaccess"]
exclude: ["tmp", "Gemfile", "Gemfile.lock", "Makefile"] exclude: ["tmp", "Gemfile", "Gemfile.lock", "Makefile"]
# Custom # Custom
assets:
gzip: []
css_compressor: yui
disqus_shortname: blog-kempkens-io disqus_shortname: blog-kempkens-io
footer: footer:

View file

@ -15,13 +15,12 @@
</title> </title>
<!-- CSS --> <!-- CSS -->
<link rel="stylesheet" href="{{ "public/css/poole.css" | prepend: site.baseurl }}"> {% stylesheet app %}
<link rel="stylesheet" href="{{ "public/css/syntax.css" | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ "public/css/hyde.css" | prepend: site.baseurl }}">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface">
<!-- Icons --> <!-- Icons -->
<link rel="shortcut icon" href="{{ "public/favicon.ico" | prepend: site.baseurl }}"> <link rel="shortcut icon" href="{% asset_path favicon.ico %}">
<link rel="icon" type="image/png" href="{% asset_path favicon.png %}" />
<!-- RSS --> <!-- RSS -->
<link rel="alternate" type="application/atom+xml" title="{{ site.title }} Feed" href="{{ "/feed.xml" | prepend: site.url }}"> <link rel="alternate" type="application/atom+xml" title="{{ site.title }} Feed" href="{{ "/feed.xml" | prepend: site.url }}">

2
_plugins/ext.rb Normal file
View file

@ -0,0 +1,2 @@
require 'bundler'
Bundler.require(:extensions)

View file

@ -42,4 +42,4 @@ Since it is nested, you need to call `polygon.coordinates[0]` in order to get ba
You could then use the the coordinates to draw the generated polygon on the map (along with the route), in order to produce something like this: You could then use the the coordinates to draw the generated polygon on the map (along with the route), in order to produce something like this:
![Buffered Polyline]({{ "public/images/buffered-polyline-1.png" | prepend: site.baseurl }}) {% image buffered-polyline-1.png %}

View file

@ -50,4 +50,4 @@ The following `alias` makes it easier to start the Observer from a terminal. The
alias erlobserver='erl -sname observer -run observer -detached' alias erlobserver='erl -sname observer -run observer -detached'
{% endhighlight %} {% endhighlight %}
![Erlang Observer]({{ "public/images/installing-erlang-17-0-using-kerl-1.png" || prepend: site.baseurl }}) {% image installing-erlang-17-0-using-kerl-1.png %}