From a4416ef72c661376b5a05cea1c5b8dbdc655ffc4 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 10 Sep 2024 00:56:52 +0100 Subject: [PATCH] Update meta descriptions for presentations --- source/_layouts/base.html.twig | 6 +++++- source/_layouts/presentation.html.twig | 2 ++ source/_presentations/deploying-php-fabric.md | 3 --- source/_presentations/drupal-8-module-development.md | 1 - source/_presentations/getting-your-data-into-drupal-8.md | 3 --- source/_presentations/taking-flight-with-tailwind-css.md | 3 --- 6 files changed, 7 insertions(+), 11 deletions(-) diff --git a/source/_layouts/base.html.twig b/source/_layouts/base.html.twig index 2bd12f17..ab76f096 100644 --- a/source/_layouts/base.html.twig +++ b/source/_layouts/base.html.twig @@ -11,16 +11,20 @@ + + - {% if page.meta.description %} + {% if page.blocks.meta_description %} + + {% elseif page.meta.description %} {% else %} diff --git a/source/_layouts/presentation.html.twig b/source/_layouts/presentation.html.twig index a2288919..fbc56609 100644 --- a/source/_layouts/presentation.html.twig +++ b/source/_layouts/presentation.html.twig @@ -1,5 +1,7 @@ {% extends 'page' %} +{% block meta_description %}{{ page.title }} presented by Oliver Davies{% endblock %} + {% block content_wrapper %} {{ parent() }} diff --git a/source/_presentations/deploying-php-fabric.md b/source/_presentations/deploying-php-fabric.md index 532937e9..ec085a7f 100644 --- a/source/_presentations/deploying-php-fabric.md +++ b/source/_presentations/deploying-php-fabric.md @@ -7,9 +7,6 @@ speakerdeck: url: https://speakerdeck.com/opdavies/deploying-php-applications-with-fabric meta: og: - title: Deploying PHP Applcations with Fabric - description: "You've built your PHP application, now learn how to deploy it with Fabric." - type: website image: url: '%site.assets.url%/assets/images/talks/deploying-php-fabric.png' width: 2560 diff --git a/source/_presentations/drupal-8-module-development.md b/source/_presentations/drupal-8-module-development.md index ad4f9fc9..1ee76ee0 100644 --- a/source/_presentations/drupal-8-module-development.md +++ b/source/_presentations/drupal-8-module-development.md @@ -11,7 +11,6 @@ video: id: qO_Wh5WE3VA meta: og: - title: Getting Started with Drupal 8 Module Development image: url: '%site.assets.url%/assets/images/talks/dclondon16.png' type: "image/png" diff --git a/source/_presentations/getting-your-data-into-drupal-8.md b/source/_presentations/getting-your-data-into-drupal-8.md index d6308152..4a873303 100644 --- a/source/_presentations/getting-your-data-into-drupal-8.md +++ b/source/_presentations/getting-your-data-into-drupal-8.md @@ -10,9 +10,6 @@ video: id: jtmARTuYhp8 meta: og: - title: Getting (Your Data) into Drupal 8 - description: "How I migrated the Drupal Bristol website onto Drupal 8." - type: website image: url: '%site.assets.url%/assets/images/talks/getting-your-data-into-drupal-8.png' width: 2560 diff --git a/source/_presentations/taking-flight-with-tailwind-css.md b/source/_presentations/taking-flight-with-tailwind-css.md index 183a514d..3ef3ce2e 100644 --- a/source/_presentations/taking-flight-with-tailwind-css.md +++ b/source/_presentations/taking-flight-with-tailwind-css.md @@ -11,9 +11,6 @@ video: type: youtube meta: og: - title: Taking Flight with Tailwind CSS - description: An introduction to utility CSS and Tailwind. - type: website image: url: '%site.assets.url%/assets/images/talks/taking-flight-tailwind.jpg' width: 2560