middleman-newsletter 0.0.3 → 0.0.5
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41053a78e5065e02c0943c3c59522b6bfa0e0b27f0489961073ff55fe3201786
|
4
|
+
data.tar.gz: c506acef30c9b67f1b4ecdcf00da9fb0b4564afdee92a9f1feba4069b54253ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1aef5de41ddb328ee5d021e57cbad0256a82c9d8a3f16516694abdf15e151c8a3629ba26c2da321a2d345ef178ddb5628b343b38e9f4ba9eefa6c76c0befc624
|
7
|
+
data.tar.gz: 5b7e494034f9bd09550c6be256de322205642ec8758c62fe565430c7896c85bee9837cd1a93ab1a230e57d47681b554ca8077ae0a6c5a624c3ca16d87e237f26
|
@@ -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)
|
@@ -23,7 +23,7 @@ module Middleman
|
|
23
23
|
class MiddlemanKramdownEmailHtmlConverter < ::Kramdown::Converter::Html
|
24
24
|
cattr_accessor :scope
|
25
25
|
|
26
|
-
BLANK_LINE = %(<div class="paragraph-break"><br></div)
|
26
|
+
BLANK_LINE = %(<div class="paragraph-break"><br></div>)
|
27
27
|
TABLE_PREAMBLE = %(<table class="module" role="module" data-type="text" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td><div>)
|
28
28
|
TABLE_POSTFIX = %(<br></div>#{BLANK_LINE}</td></tr></tbody></table>)
|
29
29
|
def convert_p(el, indent)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-newsletter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Scarborough
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|