zarchitect 1.1.0 → 1.1.1
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/zarchitect/post.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 125b9fe09ed687c0d528fda4690c0226fb41a224951a87415cfbac2d2cc29c24
|
|
4
|
+
data.tar.gz: 2749112b098facb3e31595d78b1b983176d070fd3c5baeb76e1cd82b40e29248
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 478c2b63250c223640c07135e8b57739a92765ccb32461af4c9e9423321a91527bb96a7269e4eee63d89e00db5762fbdbfb75471553a3e2f883a3a5184b3843e
|
|
7
|
+
data.tar.gz: 2f6c2a8ec07c575dc5b156e7a2de15b5f3474162ae0fcb26f6fd492c2e9be816557aff5dd4f9becc9b3517acd2fc458f369ccfef77edb03adff94d9384c20f11
|
data/lib/zarchitect/post.rb
CHANGED
|
@@ -158,15 +158,15 @@ class Post < Zarchitect
|
|
|
158
158
|
|
|
159
159
|
def set_description
|
|
160
160
|
if @conf.has_option?('description')
|
|
161
|
-
@description = @conf.description
|
|
161
|
+
@description = @conf.description
|
|
162
162
|
elsif @conf.has_option?('preview')
|
|
163
|
-
@description = Sanitize.fragment(@conf.preview) <<
|
|
163
|
+
@description = Sanitize.fragment(@conf.preview) <<
|
|
164
164
|
else
|
|
165
165
|
nodes = @content.nodes.select { |n| n.type == "p" }
|
|
166
166
|
if nodes.count > 0
|
|
167
167
|
@description = Sanitize.fragment(nodes[0].html)
|
|
168
168
|
if @description.length > 120
|
|
169
|
-
@description = @description[0..120] << "
|
|
169
|
+
@description = @description[0..120] << "…"
|
|
170
170
|
end
|
|
171
171
|
else
|
|
172
172
|
@description = ""
|