Skip to content

Commit

Permalink
Merge pull request #74 from jwade1327/stealth
Browse files Browse the repository at this point in the history
Remove stealth link from all newsletters
  • Loading branch information
jwade1327 authored May 28, 2024
2 parents 170333a + ce46ad5 commit 10f0648
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 47 deletions.
5 changes: 0 additions & 5 deletions packages/common/components/blocks/body-wrapper.marko
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import moment from "moment";
$ const { newsletter, date } = input;

$ const unixTimestamp = moment(date).unix();
$ const stealthLinkUrl = `${newsletter.site.origin}/email-preview/${newsletter.id}/${unixTimestamp}`;

<table role="presentation" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
Expand All @@ -28,14 +27,10 @@ $ const stealthLinkUrl = `${newsletter.site.origin}/email-preview/${newsletter.i
<common-header-block date=date newsletter=newsletter />
</else>

<common-stealth-link-element link-text=newsletter.site.name link-url=`${stealthLinkUrl}/top` />

<if(input.body)>
<${input.body} />
</if>

<common-stealth-link-element link-text=newsletter.site.name link-url=`${stealthLinkUrl}/bottom` />

<!-- Footer block -->
<if(input.footer)>
<${input.footer} />
Expand Down
13 changes: 0 additions & 13 deletions packages/common/components/blocks/footer.marko
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,6 @@ $ const taglineStyle = {
"padding-top": "5px",
}

$ const stealthLinkStyle = {
"color": "#ffffff",
"display": "none",
"visibility": "hidden",
"mso-hide": "all",
"font-size": "1px",
"line-height": "1px",
"max-height": "0px",
"max-width": "0px",
"opacity": "0",
"overflow": "hidden",
}

<tr>
<td align="center" valign="top">
<table role="presentation" width="100%" border="0" bgcolor="#2f3031" align="center" cellpadding="0" cellspacing="0">
Expand Down
13 changes: 0 additions & 13 deletions packages/common/components/blocks/new-footer.marko
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,6 @@ $ const taglineStyle = {
"padding-top": "5px",
}

$ const stealthLinkStyle = {
"color": "#ffffff",
"display": "none",
"visibility": "hidden",
"mso-hide": "all",
"font-size": "1px",
"line-height": "1px",
"max-height": "0px",
"max-width": "0px",
"opacity": "0",
"overflow": "hidden",
}

<tr>
<td align="center" valign="top">
<table role="presentation" width="100%" border="0" bgcolor="#2f3031" align="center" cellpadding="0" cellspacing="0">
Expand Down
11 changes: 0 additions & 11 deletions packages/common/components/elements/marko.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,5 @@
},
"<common-table-spacer-element>": {
"template": "./table-spacer.marko"
},
"<common-stealth-link-element>": {
"template": "./stealth-link.marko",
"@link-text": {
"type": "string",
"required": true
},
"@link-url": {
"type": "string",
"required": true
}
}
}
5 changes: 0 additions & 5 deletions packages/common/components/elements/stealth-link.marko

This file was deleted.

0 comments on commit 10f0648

Please sign in to comment.