chore(pricing): add Drupal testing email course
This commit is contained in:
parent
781373c9d6
commit
da762239ff
|
@ -17,8 +17,12 @@ export const priceFormatter = new Intl.NumberFormat('en-GB', {
|
||||||
{products && products.map(product => (
|
{products && products.map(product => (
|
||||||
<article class="space-y-4">
|
<article class="space-y-4">
|
||||||
<h2>
|
<h2>
|
||||||
{product.title} - {priceFormatter.format(product.price)}
|
{product.title}
|
||||||
{product.perMonth && (<> per month</>)}
|
{product.price && (
|
||||||
|
<> - {priceFormatter.format(product.price)}
|
||||||
|
{product.perMonth && (<> per month</>)}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div>{product.description}</div>
|
<div>{product.description}</div>
|
||||||
|
|
|
@ -44,5 +44,13 @@
|
||||||
"text": "Book your session now",
|
"text": "Book your session now",
|
||||||
"href": "/pair"
|
"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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -14,7 +14,11 @@ shift 1
|
||||||
|
|
||||||
# Generate the title and slug.
|
# Generate the title and slug.
|
||||||
title="${*}"
|
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.
|
# Create the file.
|
||||||
cp -f --no-clobber stub.md "${filepath}"
|
cp -f --no-clobber stub.md "${filepath}"
|
||||||
|
|
Loading…
Reference in a new issue