I’ve created a partial with the html for an email signup form and want to use it in a few places
In my <THEME>/layouts/index.html
I’m using
{{ partial “mailchimp.html” .}}
{{ end }}
and seeing my signup form on the front page
I also want to put the form at the bottom of my docs page /layouts/docs/single.html
But if I use the same text
{{ partial “mailchimp.html” .}}
{{ end }}
I get an errorUnexpected {{end}}
the footer partial in <THEME>/layouts/docs/single.html
is called like this:
{{ define “footer” }}
{{ partial “footer.html” . }}
{{ end }}
If I try to call the mailchimp partial the same way
{{ define "mailchimp" }}
{{ partial "mailchimp.html" . }}
{{ end }}
No extra text appears in my page but I don’t get any errors in the console
my <THEME>/layouts/partials/mailchimp.html
<!--add email form -->
<div class = "form-subscribe">
<form method="post" action="" class="form">
<div class="form-item">
<!-- <label>Label</label> -->
<div class="append">
<input type="text" name="search" placeholder="you@example.com">
<button class="button outline">Subcribe for Free</button>
</div>
</div>
</form>
<br />
<a href="/blog/" style="color:grey">No, thanks just show me the content please</a>
</div>
<!-- end email form-->
My /layouts/partials/footer.html displays fine.
There are no variable in mailchimp.html to be parsed, just html. Am I missing something really simple here?