A contrib recipe for a bundle to manage meta tags. (#1389)

* manifest.json file created for longitude-one/meta-bundle package

* manifest.json file created for longitude-one/meta-bundle package

* manifest.json file created for longitude-one/meta-bundle package

* Fixing manifest.json file

* Fixing manifest.json file

* Fixing typo
This commit is contained in:
Alexandre Tranchant
2022-12-17 17:43:52 +01:00
committed by GitHub
parent 8789ae53a4
commit fdd9ea84cb
3 changed files with 31 additions and 0 deletions
@@ -0,0 +1,13 @@
longitude_one_meta:
defaults:
description: '' # Enter the default description and get contents with meta_description() function in your template",
title: '' # Enter the default title for your application and get contents with meta_title() function in your template",
'og:image': "Feel free to add any tag and get their contents with meta('og:image') function or a filter: 'og:image'"
paths:
'/any-path': #for this path, default value will be replaced
description: 'A custom description for http://my_app/any-path' #for this path, default value will be replaced
title: 'A custom title for http://my_app/any-path' #for this path, default value will be replaced
# You can customize meta tags for any path
#'/another-path':
# description:'foo'
# title:'bar'
@@ -0,0 +1,10 @@
{
"bundles": {
"LongitudeOne\\MetaBundle\\LongitudeOneMetaBundle": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}
@@ -0,0 +1,8 @@
<bg=#0057B7;fg=#FFDD00> </>
<bg=#0057B7;fg=#FFDD00> STAND WITH </>
<bg=#FFDD00;fg=#0057B7> UKRAINE </>
<bg=#FFDD00;fg=#0057B7> </>
* The <fg=blue>longitude-one/meta-bundle</> is almost ready:
1. Feel free to edit the config/packages/meta.yaml file, this file is yours ;
2. Use meta_description() meta_title() and meta('foo') in your templates to get custom description, title or the default ones.