From 7b30aa119274b4a127af0e916434a789e879abb0 Mon Sep 17 00:00:00 2001 From: Jan Henckens Date: Fri, 17 Nov 2023 19:58:28 +0100 Subject: [PATCH 1/2] Fix fallback meta for STU-86 --- src/templates/_meta.twig | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/templates/_meta.twig b/src/templates/_meta.twig index 3afd540..f6236e2 100644 --- a/src/templates/_meta.twig +++ b/src/templates/_meta.twig @@ -5,14 +5,13 @@ {#{% set element = seoFields.element %}#} {#{% set meta = seoFields.meta %}#} -{% if meta %} - +{% if meta and element %} {{ meta.getPageTitle(element) }} {# Facebook #} - + {% set ogImage = meta.getOgImage() %} {% if ogImage %} @@ -26,9 +25,9 @@ {# Twitter #} - - + + {% if ogImage %} {% endif %} From c27654ae3d391309afe20a9e5299b44d9a682e00 Mon Sep 17 00:00:00 2001 From: Jan Henckens Date: Sun, 19 Nov 2023 17:29:12 +0100 Subject: [PATCH 2/2] Changelog for #86 --- CHANGELOG.md | 5 +++++ composer.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cad9468..ca47067 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 3.3.7 - 2023-11-19 +### Fixed +- Fixed an issue where page title wouldn't be used as fallback meta title ([#86](https://github.com/studioespresso/craft-seo-fields/issues/86)) + + ## 3.3.6 - 2023-11-15 ### Fixed - Final fix for pagination on redirects & 404's ([#85](https://github.com/studioespresso/craft-seo-fields/pull/85)) diff --git a/composer.json b/composer.json index 64f9279..a97fc59 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "studioespresso/craft-seo-fields", "description": "Fields for your SEO & OG meta data", "type": "craft-plugin", - "version": "3.3.6", + "version": "3.3.7", "keywords": [ "craft", "cms",