middleman-newsletter 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/middleman-newsletter/extension.rb +1 -1
- data/middleman-newsletter.gemspec +1 -1
- 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: b2cec0f02f8412f5b919fbd7b27902ad28d94d102eb098aaa311152a295a3654
|
4
|
+
data.tar.gz: 874cb8afa280169aa555b6a4032ac722a85b1256ead4da34a4ea9ef7b76e324b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b68fd205815855a3ea71a03c14d4eab49813cd68a2505f2fd3e25737225a8bb3aa494298c89369acf82df7e19f44882ae4fb0eb825c62cb22b60ce4baef720c
|
7
|
+
data.tar.gz: 53c8b682e4096081a0c887e35e9ebee642586d82f4d05f14fb2f43374faaeffc78d1f859f3018a9e864b0e8edf20e3ebf3ea4da30db39b73c3b17079ee186feb
|
@@ -16,7 +16,7 @@ module Middleman
|
|
16
16
|
option :sendgrid_api_key, nil, 'API Key for SendGrid -- must have marketing access.'
|
17
17
|
option :sendgrid_category, 'newsletters', 'Category assigned to all managed single sends in SendGrid.'
|
18
18
|
option :subject_line, proc { |newsletter| newsletter.source_resource.title }, 'A proc that takes the newsletter resource and returns the subject line for the email. Defaults to the source blog post title.'
|
19
|
-
option :preview_text, proc { |newsletter| newsletter.source_resource.description }, 'A proc that takes the newsletter resource and returns preview text for the email. Defaults to the source blog post description.'
|
19
|
+
option :preview_text, proc { |newsletter| newsletter.source_resource.data.description }, 'A proc that takes the newsletter resource and returns preview text for the email. Defaults to the source blog post description.'
|
20
20
|
option :content_modifier, proc { |_newsletter, content| content }, 'A proc that takes the newsletter resource and rendered HTML for the newsletter and can return modified content.'
|
21
21
|
|
22
22
|
def initialize(app, options_hash={}, &block)
|