feat: add Drupal Association text

This commit is contained in:
Oliver Davies 2023-10-23 20:57:12 +01:00
parent 99e5718a19
commit 83af7abe82

View file

@ -43,8 +43,13 @@ const footerLinks = [
const canonicalURL = new URL(Astro.url.pathname, Astro.site).toString().replace(/\/$/, "");
const isFrontPage = Astro.props.isFront;
const showDrupalAssociationMessage = ['diagnostic', 'drupal-upgrade', 'dto', 'pricing']
.includes(Astro.url.pathname.slice(1));
const showDrupalAssociationMessage = [
"diagnostic",
"drupal-upgrade",
"dto",
"pricing",
"team-coaching",
].includes(Astro.url.pathname.slice(1));
---
<!DOCTYPE html>
@ -82,11 +87,11 @@ const showDrupalAssociationMessage = ['diagnostic', 'drupal-upgrade', 'dto', 'pr
<Navbar />
<div class="py-10 px-6 mx-auto max-w-xl md:py-10">
{false && showDrupalAssociationMessage && (
{showDrupalAssociationMessage && (
<Message>
<p>
<strong>Work with me and support Drupal.</strong>
10% of any Drupal-related product or service is donated to the <a href="https://www.drupal.org/association">Drupal Association</a>.
5% from any Drupal-related product or service is donated to the <a href="https://www.drupal.org/association">Drupal Association</a>.
</p>
</Message>
)}