Skip to content

Commit 0c43e54

Browse files
committed
Merge pull request #117 from webstream-io/theme-newsletter
Better looking newsletter (specially in Android Gmail).
2 parents ef89881 + ea9c43e commit 0c43e54

File tree

8 files changed

+258
-697
lines changed

8 files changed

+258
-697
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,11 @@ Use the included `new_contribs.sh` script:
3333
```
3434
pelican content -s pelicanconf.py
3535
```
36+
### To build the newsletter
37+
38+
* Generate the HTML
39+
```
40+
TWIR_NEWSLETTER_THEME=1 pelican --delete-output-directory content
41+
```
42+
* Copy the HTML and inline CSS at http://zurb.com/ink/inliner.php - (MailChimp's inliner doesn't remove the CSS from `<head>`).
43+
* Send the newsletter (we currently use MailChimp).

content/images/logo32.png

4.28 KB
Loading

content/images/logo400.png

35 KB
Loading

pelicanconf.py

-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111

1212
if '1' == os.environ.get('TWIR_NEWSLETTER_THEME'):
1313
THEME = 'themes/newsletter'
14-
css_path = os.path.join(os.path.dirname(__file__), 'themes', 'newsletter', 'static', 'css')
15-
with open(os.path.join(css_path, 'ink.css')) as f:
16-
CSS_INK = f.read()
17-
with open(os.path.join(css_path, 'main.css')) as f:
18-
CSS_MAIN = f.read()
1914
else:
2015
THEME = 'themes/rusted'
2116

0 commit comments

Comments
 (0)