dimples 6.5.2 → 6.5.3
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/post.rb +1 -0
- data/lib/dimples/site.rb +5 -3
- data/lib/dimples/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 29f825d2b0c07f416c9d14934cd4de922a57d7f8ffc63a6212b4a7a37f3a17be
|
|
4
|
+
data.tar.gz: 9b90c34993bd637ab9c74e446b4c755bba9ab74ca93d7213a6c7f41c49a02964
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d11b6b61a326e236cbcf61f70601c16bdff017b7c8751696c7e5c7dfc986be513bab79af18e29e9b8628ccc77f49e946778980d97f56a83eefd98398b8db03a
|
|
7
|
+
data.tar.gz: e54743e65c9b6523bfd62d60d832222525486aba0daa92704ed0601bee1c09fa2a72a143aec44e8f7a7e6a1089eb016825ba486d8d9132dbb9696e2ea0977701
|
data/lib/dimples/post.rb
CHANGED
data/lib/dimples/site.rb
CHANGED
|
@@ -135,22 +135,24 @@ module Dimples
|
|
|
135
135
|
@posts.each do |post|
|
|
136
136
|
path = File.join(
|
|
137
137
|
@paths[:destination],
|
|
138
|
-
post.date.strftime(@config.paths.posts),
|
|
138
|
+
post.date.strftime(post.draft ? @config.paths.drafts : @config.paths.posts),
|
|
139
139
|
post.slug
|
|
140
140
|
)
|
|
141
141
|
|
|
142
142
|
post.write(path)
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
+
published_posts = @posts.select { |post| !post.draft }
|
|
146
|
+
|
|
145
147
|
if @config.generation.main_feed
|
|
146
|
-
publish_feeds(
|
|
148
|
+
publish_feeds(published_posts, @paths[:destination])
|
|
147
149
|
end
|
|
148
150
|
|
|
149
151
|
return unless @config.generation.paginated_posts
|
|
150
152
|
|
|
151
153
|
Dimples::Pager.paginate(
|
|
152
154
|
self,
|
|
153
|
-
|
|
155
|
+
published_posts,
|
|
154
156
|
File.join(@paths[:destination], @config.paths.paginated_posts),
|
|
155
157
|
@config.layouts.paginated_post
|
|
156
158
|
)
|
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: 6.5.
|
|
4
|
+
version: 6.5.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Bogan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-01-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: hashie
|