Skip to content

Commit

Permalink
Merge pull request neos#429 from crydotsnake/feature/add-meta-tag-pac…
Browse files Browse the repository at this point in the history
…kage-search

FEATURE: Add meta description to show package description on google
  • Loading branch information
Sebobo committed Jul 18, 2022
2 parents 4f60804 + ec7b819 commit 48dbcd5
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
prototype(Neos.MarketPlace:Package) < prototype(Neos.MarketPlace:DefaultPage) {

prototype(Neos.Seo:MetaDescriptionTag) {
attributes {
content = ${q(node).property('description')}
content.@process.crop = ${String.cropAtWord(value, 160, '…')}
}
@if.isNotBlank = ${!String.isBlank(q(node).property('description'))}
}

body {
templatePath = 'resource://Neos.MarketPlace/Private/Templates/Documents/Package.html'

Expand Down

0 comments on commit 48dbcd5

Please sign in to comment.