Making subscription form for your Jekyll based Website using MailChimp
Creating a subscription from in a static blog aware environment like Jekyll can be a tricky task. This post will help you do the same very easily and swiftly using MailChimp.
After creating a MailChimp account, You need to create a new list. Lists are the collection of email ids to which you will be able to send emails in the future.
If you have a custom domain then carry on with step 3 & 4 else jump to step 5. These steps will allow your campaigns to appear to come from your website, instead of MailChimp.
Verify your domain with MailChimp.
You’ll also have to update you domain’s DNS records in order to authenticate your domain.
Select the type of signup form you need, for example Embedded or Pop-up form for Jekyll blog.
Now create a new subscription-form.html file in _includes directory and Paste the html code provided by MailChimp.
{% if page.subscription-form %}
<!-- HTML Code for Subscription form provided by MailChimp -->
{% endif %}
You can now simply add the subscription form anywhere you want by including the subscription-form.html like this {% include subscription-form.html %}
Start using MailChimp by creating a new template and campaign.
The form below is created using the same method. Enjoy!