Skip to content

Commit 3ee53d8

Browse files
authored
Ninja-fixing code snippets in README.
1 parent 52bd0fa commit 3ee53d8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,16 @@ sitemap after a while, but it's always a good idea to explicitly tell the
99
search engines where to find it. To do so, this extension automatically adds
1010
the 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

1416
Apart 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

1923
Obviously, you should replace 'example.org' with the domain name of your
2024
website.
@@ -27,7 +31,7 @@ would match 'sitemap' first, you will need to add the following _above_ that
2731
route. You should also do this if you have an extension that might override the
2832
default routing, like the AnimalDesign/bolt-translate extension.
2933

30-
```
34+
```yaml
3135
sitemap:
3236
path: /sitemap
3337
defaults: { _controller: sitemap.controller:sitemap }

0 commit comments

Comments
 (0)