dimples 1.3.1 → 1.3.2
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/lib/dimples/configuration.rb +1 -0
- data/lib/dimples/site.rb +4 -3
- data/lib/dimples/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b5c65d03c199955ae095e192c3c8346b89bd58ed
|
|
4
|
+
data.tar.gz: 8ad9c5458cea55b0db90612d80d49e23d7adc6be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 409da9ce05cb4917ab8a63d4a60df7a89ad83ef884953593f1891f66938f77f386589d8d51d73346e04cddd8da5fefe0c347e54e40f077a8917d5714cd38994d
|
|
7
|
+
data.tar.gz: f8c53a1fa44dc0f75365a52edf8fa38e178fe52434455fece6adf4932542efc37b6d81a4e3fc0837bd30ce8383a061f4b9fb47afbf76af1f2bec82c79f499e2a
|
data/lib/dimples/site.rb
CHANGED
|
@@ -38,6 +38,7 @@ module Dimples
|
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
@output_paths[:posts] = File.join(@output_paths[:site], @config['paths']['posts'])
|
|
41
|
+
@output_paths[:categories] = File.join(@output_paths[:site], @config['paths']['categories'])
|
|
41
42
|
end
|
|
42
43
|
|
|
43
44
|
def generate(options = {})
|
|
@@ -143,7 +144,7 @@ module Dimples
|
|
|
143
144
|
|
|
144
145
|
def generate_categories
|
|
145
146
|
@categories.each_value do |category|
|
|
146
|
-
paginate(posts: category.posts, title: category.name, paths: [@output_paths[:
|
|
147
|
+
paginate(posts: category.posts, title: category.name, paths: [@output_paths[:categories], category.slug], layout: @config['layouts']['category'])
|
|
147
148
|
end
|
|
148
149
|
end
|
|
149
150
|
|
|
@@ -181,13 +182,13 @@ module Dimples
|
|
|
181
182
|
|
|
182
183
|
def generate_category_feeds
|
|
183
184
|
@categories.each_value do |category|
|
|
184
|
-
generate_feed(File.join(@output_paths[:
|
|
185
|
+
generate_feed(File.join(@output_paths[:categories], category.slug), {posts: category.posts[0..@config['pagination']['per_page'] - 1], category: category.slug})
|
|
185
186
|
end
|
|
186
187
|
end
|
|
187
188
|
|
|
188
189
|
def copy_assets
|
|
189
190
|
begin
|
|
190
|
-
FileUtils.cp_r(File.join(@source_paths[:public], '.'), @output_paths[:site]) if Dir.
|
|
191
|
+
FileUtils.cp_r(File.join(@source_paths[:public], '.'), @output_paths[:site]) if Dir.exist?(@source_paths[:public])
|
|
191
192
|
rescue => e
|
|
192
193
|
raise "Failed to copy site assets (#{e})"
|
|
193
194
|
end
|
data/lib/dimples/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dimples
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Bogan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-11-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tilt
|
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
133
133
|
version: '0'
|
|
134
134
|
requirements: []
|
|
135
135
|
rubyforge_project:
|
|
136
|
-
rubygems_version: 2.4.5
|
|
136
|
+
rubygems_version: 2.4.5.1
|
|
137
137
|
signing_key:
|
|
138
138
|
specification_version: 4
|
|
139
139
|
summary: A basic static site generator
|