Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ecadee

Browse files
committed
[documentaion] add seo
1 parent efbb300 commit 9ecadee

File tree

1 file changed

+8
-25
lines changed

1 file changed

+8
-25
lines changed

docs/plugins/seo.rst

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,23 @@
1-
.. note::
2-
3-
This documentation is under construction, more to come soon
4-
5-
6-
71
Seo
82
===
93

10-
Alter node to include SEO information
11-
124
Features
13-
~~~~~~~~
5+
--------
146

15-
- Insert here the different feature available for this plugin
7+
- Alter node to include SEO information
168

179
Configuration
18-
~~~~~~~~~~~~~
10+
-------------
1911

20-
- Insert the yaml configuration for the DI
12+
You need to enable the module ``element.plugins.seo`` and configure the ``title_pattern`` setting.
2113

2214
.. code-block:: yaml
2315
24-
element.plugins.cache:
25-
cache_control:
26-
- { "path": "^.*\\.(txt|jpg|png|gif|xls|doc|docx)$", "Cache-Control": ['public', 's-maxage=14212800']}
27-
- { "path": "^(blog|gallery).*", "Cache-Control": ['public', 's-maxage=3600']}
28-
- { "path": "^.*\\.rss", "Cache-Control": ['public', 's-maxage=3600']}
29-
- { "path": "^contact.*", "Cache-Control": ['private', 'must-revalidate']}
30-
- { "path": "^/$", "Cache-Control": ['public', 's-maxage=3600']}
16+
element.plugins.seo:
17+
title_pattern: "%seo.title_pattern%"
3118
3219
Events
33-
~~~~~~
34-
35-
- List event or entry points for this plugin
20+
------
3621

37-
Architecture
38-
~~~~~~~~~~~~
22+
- The plugin is registered to the ``element.node.load.success`` event to add SEO information.
3923

40-
- Provide information about how the feature is implemented

0 commit comments

Comments
 (0)