I have a MailerLite account and would like to embed a mailing list form into a Hugo markdown template but I’m not sure what the best way to do so is.
Can anyone point me in the right direction please?
I have a MailerLite account and would like to embed a mailing list form into a Hugo markdown template but I’m not sure what the best way to do so is.
Can anyone point me in the right direction please?
It seems like this is covered pretty well here:
https://www.mailerlite.com/help/how-to-add-a-form-to-your-website
If you want to embed the form on only one page (e.g., a contact page), it’s probably easiest to create a shortcode that includes what they describe as the “second snippet”.
For the “first snippet”, just insert into your base template as described.
Thank you very much. I’m new to Hugo so didn’t know about shortcodes but that looks exactly what I want.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.