3cf07ebfbd
Sync campaigns / sync (push) Failing after 22s
Rename default template, restyle campaign email to the Fantasy Michigan palette, write a short domain-specific README.
117 lines
3.8 KiB
HTML
117 lines
3.8 KiB
HTML
<!--
|
|
Based on Listmonk's own stock campaign template (static/email-templates/
|
|
default.tpl in knadh/listmonk), restyled to cateconners.com's Fantasy
|
|
Michigan palette (birch parchment / forest green / lake teal — see
|
|
will/cateconners-site's assets/css/main.css for the canonical values).
|
|
Synced into listmonk via `campaigns template <name> email-templates/
|
|
campaign.html` (see internal/campaign/template.go) as the is_default
|
|
campaign template, so every campaign this tool creates gets a real
|
|
unsubscribe link/footer without per-campaign template_id wiring. The two
|
|
load-bearing tags are `{{ template "content" . }}` (where the campaign body
|
|
gets injected) and `{{ UnsubscribeURL }}` (the actual unsubscribe link).
|
|
-->
|
|
<!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">
|
|
<style>
|
|
body {
|
|
background-color: #e8ddc8;
|
|
font-family: Georgia, 'Times New Roman', serif;
|
|
font-size: 15px;
|
|
line-height: 26px;
|
|
margin: 0;
|
|
color: #2b2a1f;
|
|
}
|
|
|
|
pre {
|
|
background: #e8ddc8;
|
|
padding: 2px;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border: 1px solid #cbb98f;
|
|
}
|
|
table td {
|
|
border-color: #cbb98f;
|
|
padding: 5px;
|
|
}
|
|
|
|
.wrap {
|
|
background-color: #f4ede1;
|
|
padding: 30px;
|
|
max-width: 525px;
|
|
margin: 0 auto;
|
|
border-radius: 5px;
|
|
border: 1px solid #cbb98f;
|
|
}
|
|
|
|
.button {
|
|
background: #2f5233;
|
|
border-radius: 3px;
|
|
text-decoration: none !important;
|
|
color: #f4ede1 !important;
|
|
font-weight: bold;
|
|
padding: 10px 30px;
|
|
display: inline-block;
|
|
}
|
|
.button:hover {
|
|
background: #1f3a22;
|
|
}
|
|
|
|
.footer {
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: #3b6e77;
|
|
}
|
|
.footer a {
|
|
color: #3b6e77;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.gutter {
|
|
padding: 30px;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
a {
|
|
color: #2f5233;
|
|
}
|
|
a:hover {
|
|
color: #1f3a22;
|
|
}
|
|
@media screen and (max-width: 600px) {
|
|
.wrap {
|
|
max-width: auto;
|
|
}
|
|
.gutter {
|
|
padding: 10px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body style="background-color: #e8ddc8;font-family: Georgia, 'Times New Roman', serif;font-size: 15px;line-height: 26px;margin: 0;color: #2b2a1f;">
|
|
<div class="gutter" style="padding: 30px;"> </div>
|
|
<div class="wrap" style="background-color: #f4ede1;padding: 30px;max-width: 525px;margin: 0 auto;border-radius: 5px;border: 1px solid #cbb98f;">
|
|
{{ template "content" . }}
|
|
</div>
|
|
|
|
<div class="footer" style="text-align: center;font-size: 12px;color: #3b6e77;">
|
|
<p>
|
|
<a href="{{ UnsubscribeURL }}" style="color: #3b6e77;">{{ L.T "email.unsub" }}</a>
|
|
|
|
<a href="{{ MessageURL }}" style="color: #3b6e77;">{{ L.T "email.viewInBrowser" }}</a>
|
|
</p>
|
|
</div>
|
|
<div class="gutter" style="padding: 30px;"> {{ TrackView }}</div>
|
|
</body>
|
|
</html>
|