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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/zarchitect/post.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd8b90e59014447960fa45a91254772db7ec7cfacae1114ae091e8e91c7f21d1
4
- data.tar.gz: d96209b417853a4f8f1247958b12bdfb569cc8a9e0b0d10e41880e38c6d6ddb2
3
+ metadata.gz: 125b9fe09ed687c0d528fda4690c0226fb41a224951a87415cfbac2d2cc29c24
4
+ data.tar.gz: 2749112b098facb3e31595d78b1b983176d070fd3c5baeb76e1cd82b40e29248
5
5
  SHA512:
6
- metadata.gz: 76917b275599638f9893d83edc46f675e4950043cc0a816ee704a88eeae62cf96c58a947dd0609665508855c8b2ab92cde5f806a2c86943071813737636de9d7
7
- data.tar.gz: c9ef305baed4ae733bd44b6fd22774cb21155a341bc8d272dcc2154c52b864f025362390af19855f335ac6f5760b0fb84b9461d255592ee90d631251a29612b1
6
+ metadata.gz: 478c2b63250c223640c07135e8b57739a92765ccb32461af4c9e9423321a91527bb96a7269e4eee63d89e00db5762fbdbfb75471553a3e2f883a3a5184b3843e
7
+ data.tar.gz: 2f6c2a8ec07c575dc5b156e7a2de15b5f3474162ae0fcb26f6fd492c2e9be816557aff5dd4f9becc9b3517acd2fc458f369ccfef77edb03adff94d9384c20f11
@@ -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 = ""
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zarchitect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryu