Skip to content

Commit dd61a41

Browse files
committed
rss fix
1 parent 99c51ce commit dd61a41

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bnomei/kirby3-feed",
33
"type": "plugin",
4-
"version": "1.0.3",
4+
"version": "1.0.4",
55
"description": "Generate a RSS/JSON-Feed from a Pages-Collection",
66
"license": "MIT",
77
"autoload": {

snippets/feed/rss.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
<?php use \Kirby\Toolkit\XML; ?><?xml version="1.0" encoding="utf-8"?>
2-
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
1+
<?php use \Kirby\Toolkit\XML;
2+
3+
echo '<?xml version="1.0" encoding="utf-8"?>';
4+
?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
35

46
<channel>
57
<title><?= XML::encode($title) ?></title>

0 commit comments

Comments
 (0)