0
Fork 0
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:
Peter Zimon 2019-11-06 16:16:50 +07:00
parent f2a9bfcb93
commit 36f7a88b84

View file

@ -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} &copy; ${currentYear.getFullYear()}  <a href="http://example.com">Unsubscribe</a></td>
</tr>
</table>
</td>
@ -854,5 +855,5 @@ figure blockquote p {
</table>
</body>
</html>
`;
</html>`;
}