diff --git a/CHANGELOG.md b/CHANGELOG.md index dd6f8bb..811b743 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/). +## 4.0.4 - 2024-02-05 +### Fixed +- Fixed an issue where the "Allow sitename to be hidden" option would not work ([#90](https://github.com/studioespresso/craft-seo-fields/issues/90)) + + ## 4.0.3 - 2024-02-05 ### Fixed - Fixed a permissions issue on sites with multiple users and user groups diff --git a/composer.json b/composer.json index 145deed..84b6359 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": "4.0.3", + "version": "4.0.4", "keywords": [ "craft", "cms", diff --git a/src/templates/_components/fields/_tabs/_general.twig b/src/templates/_components/fields/_tabs/_general.twig index f440d54..cb0f109 100644 --- a/src/templates/_components/fields/_tabs/_general.twig +++ b/src/templates/_components/fields/_tabs/_general.twig @@ -29,13 +29,16 @@ name: name ~ "[siteName]", value: value.siteName, }) }} + {% endif %} + + {% if field.allowSitenameDisable %} {{ forms.checkboxField({ - label: "Hide site name"|t("seo-fields"), - id: name ~ "-hideSiteName", - name: name ~ "[hideSiteName]", - checked: value.hideSiteName, - }) }} + label: "Hide site name"|t("seo-fields"), + id: name ~ "-hideSiteName", + name: name ~ "[hideSiteName]", + checked: value.hideSiteName, + }) }} {% endif %}