Skip to content

Commit 8b0ac4d

Browse files
authored
Update README.md
1 parent 9002cb0 commit 8b0ac4d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ Since you're here you should browse the available elements in the [jsonfeed.org
1010

1111
Remember, we are now serving `application/feed+json` and the JSON feed format is `'version' => 'https://jsonfeed.org/version/1.1'`, also, the URL for the feed link in your header should use this PHP code:
1212
```PHP
13-
<link rel="alternate" type="application/feed+json" title="<?= $site->title()->esc() ?>" h
14-
ref="<?= $site->rssfeed()->toPage()->url() ?>" />
13+
<link rel="alternate" type="application/feed+json"
14+
title="<?= $site->title()->esc() ?>"
15+
href="<?= $site->rssfeed()->toPage()->url() ?>" />
1516
```
1617
Of course, if you'd just like to link to your feed page directly, bypassing my silly panel page chooser for the feed, your header should use this more normal PHP code:
1718
```PHP
18-
<link rel="alternate" type="application/feed+json" title="<?= $site->title()->esc() ?>"
19+
<link rel="alternate" type="application/feed+json"
20+
title="<?= $site->title()->esc() ?>"
1921
href="<?= page('feed')->url() ?>" />
2022
```
2123

0 commit comments

Comments
 (0)