File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,16 @@ sitemap after a while, but it's always a good idea to explicitly tell the
99search engines where to find it. To do so, this extension automatically adds
1010the link to the ` <head> ` section of your pages:
1111
12- <link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml" />
12+ ``` html
13+ <link rel =" sitemap" type =" application/xml" title =" Sitemap" href =" /sitemap.xml" />
14+ ```
1315
1416Apart from that, it's good practice to also add the following line to your
1517` robots.txt ` file:
1618
17- Sitemap: http://example.org/sitemap.xml
19+ ```
20+ Sitemap: http://example.org/sitemap.xml
21+ ```
1822
1923Obviously, you should replace 'example.org' with the domain name of your
2024website.
@@ -27,7 +31,7 @@ would match 'sitemap' first, you will need to add the following _above_ that
2731route. You should also do this if you have an extension that might override the
2832default routing, like the AnimalDesign/bolt-translate extension.
2933
30- ```
34+ ``` yaml
3135sitemap :
3236 path : /sitemap
3337 defaults : { _controller: sitemap.controller:sitemap }
You can’t perform that action at this time.
0 commit comments