diff --git a/src/pages/pricing.mdx b/src/pages/pricing.mdx index c300ad8e6..1b7b17216 100644 --- a/src/pages/pricing.mdx +++ b/src/pages/pricing.mdx @@ -17,8 +17,12 @@ export const priceFormatter = new Intl.NumberFormat('en-GB', { {products && products.map(product => (

- {product.title} - {priceFormatter.format(product.price)} - {product.perMonth && (<> per month)} + {product.title} + {product.price && ( + <> - {priceFormatter.format(product.price)} + {product.perMonth && (<> per month)} + + )}

{product.description}
diff --git a/src/products.json b/src/products.json index 6fa9bae0b..57fc27494 100644 --- a/src/products.json +++ b/src/products.json @@ -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" + } } ] diff --git a/tools/scripts/create-daily.sh b/tools/scripts/create-daily.sh index b173f86ad..594426150 100755 --- a/tools/scripts/create-daily.sh +++ b/tools/scripts/create-daily.sh @@ -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}"