daily email: add intro text above form on posts

This commit is contained in:
Oliver Davies 2023-04-20 00:24:51 +01:00
parent bf6d50bb61
commit 4c5a083b7d
2 changed files with 6 additions and 1 deletions

View file

@ -1,4 +1,5 @@
---
const { intro } = Astro.props;
---
<script src="https://f.convertkit.com/ckjs/ck.5.js"></script>
@ -28,6 +29,8 @@
data-stacked="false"
class="seva-fields formkit-fields"
>
{intro && (<p class="mb-8 text-center">{intro}</p>)}
<div class="formkit-field">
<input
class="block mt-1 w-full"

View file

@ -13,7 +13,9 @@ const { title } = Astro.props.frontmatter || Astro.props;
<slot />
</Markdown>
<DailyEmailForm />
<DailyEmailForm
intro='Was this useful? Sign up here and get more like this delivered straight to your inbox every day.'
/>
<AboutMe />
</div>