mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Added current year in email footer
This commit is contained in:
parent
f2a9bfcb93
commit
36f7a88b84
1 changed files with 6 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
|||
/* eslint indent: warn, no-irregular-whitespace: warn */
|
||||
module.exports = ({post, site}) => `
|
||||
<!doctype html>
|
||||
module.exports = ({post, site}) => {
|
||||
const currentYear = new Date();
|
||||
return `<!doctype html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
@ -839,7 +840,7 @@ figure blockquote p {
|
|||
<td class="wrapper">
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="footer">${site.title} – <a href="http://example.com">Unsubscribe</a></td>
|
||||
<td class="footer">${site.title} © ${currentYear.getFullYear()} – <a href="http://example.com">Unsubscribe</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
@ -854,5 +855,5 @@ figure blockquote p {
|
|||
</table>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
`;
|
||||
</html>`;
|
||||
}
|
Loading…
Add table
Reference in a new issue