Skip to content

Commit

Permalink
Merge pull request #149 from neos/bugfix/twitter_thumbnail_preset
Browse files Browse the repository at this point in the history
BUGFIX: Fix twitter card preset
  • Loading branch information
Sebobo authored Nov 3, 2020
2 parents 1c61558 + b3ba619 commit a4c47ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Resources/Private/Fusion/Metadata/TwitterCard.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ prototype(Neos.Seo:TwitterCard) < prototype(Neos.Fusion:Component) {
description = ${q(node).property('twitterCardDescription') || q(node).property('openGraphDescription') || q(node).property('metaDescription')}
siteHandle = ${Configuration.setting('Neos.Seo.twitterCard.siteHandle')}
creator = ${q(node).property('twitterCardCreator') || this.siteHandle}
@context.type = ${this.type}
url = Neos.Neos:NodeUri {
node = ${node}
absolute = true
Expand All @@ -24,7 +25,7 @@ prototype(Neos.Seo:TwitterCard) < prototype(Neos.Fusion:Component) {
}
preset = Neos.Fusion:Case {
summaryCardLargeImage {
condition = ${q(node).property('twitterCardType') == 'summary_large_image'}
condition = ${type == 'summary_large_image'}
renderer = 'Neos.Seo:TwitterCard.SummaryCardLargeImage'
}

Expand Down

0 comments on commit a4c47ae

Please sign in to comment.