6c65fd1379
Sync campaigns / sync (push) Failing after 18s
campaigns/welcome/ is a sample campaign showing the campaign.md format in practice. Restyled email-templates/campaign.html to thistleandmoth.org's actual brand colors and fonts (EB Garamond/Source Serif 4), no images, with web-safe fallbacks for clients that can't load webfonts. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
126 lines
4.4 KiB
HTML
126 lines
4.4 KiB
HTML
<!--
|
|
Listmonk's own stock campaign template (static/email-templates/default.tpl
|
|
in knadh/listmonk), restyled to match thistleandmoth.org's brand colors and
|
|
fonts (see thistleandmoth-site/assets/css/main.css) — no images, since this
|
|
domain prefers not to ship graphics in email. The Google Fonts <link> lets
|
|
clients that support remote webfonts (Apple/iOS Mail, some Android/web
|
|
clients) render the real EB Garamond/Source Serif 4 (the site self-hosts
|
|
these, but email clients can't reach relative site assets, so this pulls the
|
|
same two families from Google Fonts instead); every font-family below still
|
|
lists web-safe fallbacks first-class, since most email clients (Outlook,
|
|
Gmail's own rendering) strip external fonts entirely and need those to look
|
|
right. The two load-bearing tags are `{{ template "content" . }}` (where the
|
|
campaign body gets injected) and `{{ UnsubscribeURL }}` (the actual
|
|
unsubscribe link); everything else here is just this domain's look.
|
|
-->
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>{{ .Campaign.Subject }}</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
|
|
<base target="_blank">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link href="https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;700&family=Source+Serif+4:wght@400;700&display=swap" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
background-color: #F0F1F3;
|
|
font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
|
|
font-size: 15px;
|
|
line-height: 26px;
|
|
margin: 0;
|
|
color: #241C14;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
|
|
color: #1A140D;
|
|
}
|
|
|
|
pre {
|
|
background: #f4f4f4f4;
|
|
padding: 2px;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border: 1px solid #ddd;
|
|
}
|
|
table td {
|
|
border-color: #ddd;
|
|
padding: 5px;
|
|
}
|
|
|
|
.wrap {
|
|
background-color: #F6F0DF;
|
|
padding: 30px;
|
|
max-width: 525px;
|
|
margin: 0 auto;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.button {
|
|
background: #1D4F91;
|
|
border-radius: 3px;
|
|
text-decoration: none !important;
|
|
color: #fff !important;
|
|
font-weight: bold;
|
|
padding: 10px 30px;
|
|
display: inline-block;
|
|
}
|
|
.button:hover {
|
|
background: #163B70;
|
|
}
|
|
|
|
.footer {
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: #888;
|
|
}
|
|
.footer a {
|
|
color: #888;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.gutter {
|
|
padding: 30px;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
a {
|
|
color: #1D4F91;
|
|
}
|
|
a:hover {
|
|
color: #163B70;
|
|
}
|
|
@media screen and (max-width: 600px) {
|
|
.wrap {
|
|
max-width: auto;
|
|
}
|
|
.gutter {
|
|
padding: 10px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body style="background-color: #F0F1F3;font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;font-size: 15px;line-height: 26px;margin: 0;color: #241C14;">
|
|
<div class="gutter" style="padding: 30px;"> </div>
|
|
<div class="wrap" style="background-color: #F6F0DF;padding: 30px;max-width: 525px;margin: 0 auto;border-radius: 5px;">
|
|
{{ template "content" . }}
|
|
</div>
|
|
|
|
<div class="footer" style="text-align: center;font-size: 12px;color: #888;">
|
|
<p>
|
|
<a href="{{ UnsubscribeURL }}" style="color: #888;">{{ L.T "email.unsub" }}</a>
|
|
|
|
<a href="{{ MessageURL }}" style="color: #888;">{{ L.T "email.viewInBrowser" }}</a>
|
|
</p>
|
|
</div>
|
|
<div class="gutter" style="padding: 30px;"> {{ TrackView }}</div>
|
|
</body>
|
|
</html>
|