jumbo-jekyll-theme 1.4.11 → 1.4.12

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: f031ed806bbee98eb7f51d24270a6647fe01c79e
4
- data.tar.gz: e29d81ed47e2dbdc4b0e588d46f1da1f5a95d5e9
3
+ metadata.gz: 9be203af420dfdb3662093aa3d3167923053da63
4
+ data.tar.gz: f7dc5f8ab493e25334d4958dcb3eb195e8e9dcd7
5
5
  SHA512:
6
- metadata.gz: 37308b9fd7310fe3315bcc068999072e35bd8e6b39196785612d59669455a7910b26e521ac1e903b8856f891718872399bc505c9f8d8e5e86713007ec35014a5
7
- data.tar.gz: ee7927199d4a89f667fc9cd449be24cdf6e36ef625bc2fa4fc8d624b6a9daf8da30e4e72e08c2b253e092ff205fc216704edda274d1a31e1b51f1c324f194a58
6
+ metadata.gz: 8a4d587708ec33de0d65911f1bb8e859c3c525685a2fdd22faa56d8a26379a5e6f10eec7d7b7155003443d0882eb5564cefb0c75f5e91f9d025e35818f3ad788
7
+ data.tar.gz: 6290a34467b1b893edb236d85da82c6ded0e7d8cdfd7a4523d90cf29bc791b01b8d4239553a4780c7280748e4edc233c04d8e4de544a19dd105bc1e8c1fee10a
@@ -99,9 +99,7 @@ jekyll_relative_links:
99
99
  process_all_collections: true
100
100
  verbose: 1
101
101
 
102
-
103
102
  plugins:
104
- - jekyll-minimagick
105
103
  - jekyll-seo-tag
106
104
  - jekyll-sitemap
107
105
  - bootstrap-sass
@@ -113,34 +111,6 @@ plugins:
113
111
  - autoprefixer-rails
114
112
  - jekyll-paginate-v2
115
113
 
116
- # Jekyll Mini Magick Settings
117
- # All images will have a thumbnail (100x100), medium(300x300) and large(500x500)
118
- # created upon building the static site.
119
-
120
- mini_magick:
121
- # Blog Image Presets
122
- thumbnails:
123
- source: assets/images/
124
- destination: assets/images/thumbnails/
125
- resize: "100x100"
126
- thumbnail: "100x100>"
127
- gravity: "Center"
128
- extent: "100x100"
129
- medium:
130
- source: assets/images/
131
- destination: assets/images/medium/
132
- resize: "300x300"
133
- thumbnail: "300x300>"
134
- gravity: "Center"
135
- extent: "300x300"
136
- large:
137
- source: assets/images/
138
- destination: assets/images/large/
139
- resize: "500x500"
140
- thumbnail: "500x500>"
141
- gravity: "Center"
142
- extent: "500x500"
143
-
144
114
  # Make sure that Liquid errors stop the build
145
115
  liquid:
146
116
  error_mode: strict
@@ -32,7 +32,7 @@
32
32
  {% endfor %}
33
33
  </div>
34
34
  <div class="col-md-6 social-footer-bottom text-right no-padding">
35
- {% if site.data.settings.social-media %}
35
+ {% if site.data.settings.facebook_username %}
36
36
  <a href="http://facebook.com/{{site.data.settings.facebook_username}}" class="btn btn-social-icon"><i class="icon-facebook"></i></a> {% endif %} {% if site.data.settings.github_username %}
37
37
  <a href="https://github.com/{{site.data.settings.github_username}}" class="btn btn-social-icon"><i class="icon-github-circled"></i></a> {% endif %} {% if site.data.settings.google_plus_username %}
38
38
  <a href="https://plus.google.com/{{site.data.settings.google_plus_username}}/posts" class="btn btn-social-icon"><i class="icon-gplus"></i></a> {% endif %} {% if site.data.settings.linkedin_username %}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jumbo-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.11
4
+ version: 1.4.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-06 00:00:00.000000000 Z
11
+ date: 2018-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -324,9 +324,6 @@ files:
324
324
  - _layouts/post-no-sidebar.html
325
325
  - _layouts/post-old.html
326
326
  - _layouts/post.html
327
- - _plugins/jekyll-minimagick.rb
328
- - _plugins/jekyll-minimagick/version.rb
329
- - _plugins/jekyll_get.rb
330
327
  - _sass/_bootstrap-compass.scss
331
328
  - _sass/_bootstrap-mincer.scss
332
329
  - _sass/_bootstrap-sprockets.scss
@@ -1,83 +0,0 @@
1
- require 'mini_magick'
2
-
3
- module Jekyll
4
- module JekyllMinimagick
5
-
6
- class GeneratedImageFile < Jekyll::StaticFile
7
- # Initialize a new GeneratedImage.
8
- # +site+ is the Site
9
- # +base+ is the String path to the <source>
10
- # +dir+ is the String path between <source> and the file
11
- # +name+ is the String filename of the file
12
- # +preset+ is the Preset hash from the config.
13
- #
14
- # Returns <GeneratedImageFile>
15
- def initialize(site, base, dir, name, preset)
16
- @site = site
17
- @base = base
18
- @dir = dir
19
- @name = name
20
- @relative_path = File.join(*[@dir, @name].compact)
21
- @extname = File.extname(@name)
22
- @dst_dir = preset.delete('destination')
23
- @src_dir = preset.delete('source')
24
- @commands = preset
25
- end
26
-
27
- # Obtains source file path by substituting the preset's source directory
28
- # for the destination directory.
29
- #
30
- # Returns source file path.
31
- def path
32
- File.join(@base, @dir.sub(@dst_dir, @src_dir), @name)
33
- end
34
-
35
- # Use MiniMagick to create a derivative image at the destination
36
- # specified (if the original is modified).
37
- # +dest+ is the String path to the destination dir
38
- #
39
- # Returns false if the file was not modified since last time (no-op).
40
- def write(dest)
41
- dest_path = destination(dest)
42
-
43
- return false if File.exist? dest_path and !modified?
44
-
45
- self.class.mtimes[path] = mtime
46
-
47
- FileUtils.mkdir_p(File.dirname(dest_path))
48
- image = ::MiniMagick::Image.open(path)
49
-
50
- image.combine_options do |c|
51
- @commands.each_pair do |command, arg|
52
- c.send command, arg
53
- end
54
- end
55
-
56
- image.write dest_path
57
-
58
- true
59
- end
60
-
61
- end
62
-
63
- class MiniMagickGenerator < Generator
64
- safe true
65
-
66
- # Find all image files in the source directories of the presets specified
67
- # in the site config. Add a GeneratedImageFile to the static_files stack
68
- # for later processing.
69
- def generate(site)
70
- return unless site.config['mini_magick']
71
-
72
- site.config['mini_magick'].each_pair do |name, preset|
73
- Dir.chdir preset['source'] do
74
- Dir.glob(File.join("**", "*.{png,jpg,jpeg,gif}")) do |source|
75
- site.static_files << GeneratedImageFile.new(site, site.source, preset['destination'], source, preset.clone)
76
- end
77
- end
78
- end
79
- end
80
- end
81
-
82
- end
83
- end
@@ -1,5 +0,0 @@
1
- module Jekyll
2
- module Minimagick
3
- VERSION = "0.0.4"
4
- end
5
- end
@@ -1,40 +0,0 @@
1
- require 'json'
2
- require 'hash-joiner'
3
- require 'open-uri'
4
-
5
- module Jekyll_Get
6
- class Generator < Jekyll::Generator
7
- safe true
8
- priority :highest
9
-
10
- def generate(site)
11
- config = site.config['jekyll_get']
12
- if !config
13
- return
14
- end
15
- if !config.kind_of?(Array)
16
- config = [config]
17
- end
18
- config.each do |d|
19
- begin
20
- target = site.data[d['data']]
21
- source = JSON.load(open(d['json']))
22
- if target
23
- HashJoiner.deep_merge target, source
24
- else
25
- site.data[d['data']] = source
26
- end
27
- if d['cache']
28
- data_source = (site.config['data_source'] || '_data')
29
- path = "#{data_source}/#{d['data']}.json"
30
- open(path, 'wb') do |file|
31
- file << JSON.generate(site.data[d['data']])
32
- end
33
- end
34
- rescue
35
- next
36
- end
37
- end
38
- end
39
- end
40
- end