chore(pricing): add Drupal testing email course

This commit is contained in:
Oliver Davies 2023-09-12 07:53:58 +01:00
parent 781373c9d6
commit da762239ff
3 changed files with 19 additions and 3 deletions

View file

@ -17,8 +17,12 @@ export const priceFormatter = new Intl.NumberFormat('en-GB', {
{products && products.map(product => (
<article class="space-y-4">
<h2>
{product.title} - {priceFormatter.format(product.price)}
{product.perMonth && (<> per month</>)}
{product.title}
{product.price && (
<> - {priceFormatter.format(product.price)}
{product.perMonth && (<> per month</>)}
</>
)}
</h2>
<div>{product.description}</div>

View file

@ -44,5 +44,13 @@
"text": "Book your session now",
"href": "/pair"
}
},
{
"title": "Introduction to automated testing in Drupal - 7-day email course",
"description": "Register for my free upcoming email course on automated testing in Drupal.",
"link": {
"text": "Register now",
"href": "https://forms.gle/9fGwMgaWcWjNDjdAA"
}
}
]

View file

@ -14,7 +14,11 @@ shift 1
# Generate the title and slug.
title="${*}"
slug=$(echo "${title}" | awk '{print tolower($0)}' | tr ' ' '-' | awk '{ gsub("?", ""); print }')
slug=$(echo "${title}" | \
tr '[:upper:]' '[:lower:]' | \
sed 's/[^a-z0-9]/-/g' | \
sed 's/\-\-+/-/g' | \
sed 's/^\-//;s/\-$//')
# Create the file.
cp -f --no-clobber stub.md "${filepath}"