Skip to content

Commit

Permalink
Update the MailerLite setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dguo committed Jan 27, 2024
1 parent c7c69d9 commit c835e1a
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions src/pages/newsletter.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,21 @@ import BaseLayout from "../layouts/BaseLayout.astro";
<!-- MailerLite Universal -->
<script>
// prettier-ignore
(function(m,a,i,l,e,r){ m['MailerLiteObject']=e;function f(){
var c={ a:arguments,q:[]};var r=this.push(c);return "number"!=typeof r?r:f.bind(c.q);}
f.q=f.q||[];m[e]=m[e]||f.bind(f.q);m[e].q=m[e].q||f.q;r=a.createElement(i);
var _=a.getElementsByTagName(i)[0];r.async=1;r.src=l+'?v'+(~~(new Date().getTime()/1000000));
_.parentNode.insertBefore(r,_);})(window, document, 'script', 'https://static.mailerlite.com/js/universal.js', 'ml');
var ml_account = ml("accounts", "1364592", "e5o7c0a7j7", "load");
(function(w,d,e,u,f,l,n){w[f]=w[f]||function(){(w[f].q=w[f].q||[])
.push(arguments);},l=d.createElement(e),l.async=1,l.src=u,
n=d.getElementsByTagName(e)[0],n.parentNode.insertBefore(l,n);})
(window,document,'script','https://assets.mailerlite.com/js/universal.js','ml');
ml('account', '796104');
</script>

<style is:global>
/* The header is only necessary on the standalone form page. */
.ml-form-embedContent h4 {
display: none;
}
</style>

<BaseLayout title="Danny Guo · Newsletter">
<p>
To get updates on my new <a href="/blog">posts</a>, you can subscribe to
my free newsletter. I won't share your email address with anyone, and
you can unsubscribe anytime.
</p>

<div
class="ml-form-embed"
data-account="1364592:e5o7c0a7j7"
data-form="1162348:b2q7v2"
>
</div>
<div class="ml-embedded" data-form="7m0QtF"></div>

<p>
You can also follow me on
Expand Down

0 comments on commit c835e1a

Please sign in to comment.