Last active
December 12, 2015 03:08
-
-
Save anazawa/4704221 to your computer and use it in GitHub Desktop.
Blosxom flavour: rss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| application/rss+xml; charset=utf-8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| </channel> | |
| </rss> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ?= mt::encoded_string '<?xml version="1.0"?>'; | |
| <rss version="2.0" | |
| xmlns:atom="http://www.w3.org/2005/Atom" | |
| xmlns:content="http://purl.org/rss/1.0/modules/content/"> | |
| <channel> | |
| <atom:link href="<?= "$url$path/index.rss" ?>" rel="self" type="application/rss+xml" /> | |
| <title><?= "$blog_title $path_info_da $path_info_mo $path_info_yr" ?></title> | |
| <link><?= $url ?></link> | |
| <language><?= $blog_language ?></language> | |
| <description><?= $blog_description ?></description> | |
| <generator>blosxom/<?= $version ?></generator> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ? my $body = ( split("\n", $raw, 2) )[1]; | |
| <item> | |
| <title><?= $title ?></title> | |
| <link><?= "$url/$yr/$mo_num/$da#$fn" ?></link> | |
| <content:encoded> | |
| <![CDATA[<?= mt::encoded_string($body) ?>]]> | |
| </content:encoded> | |
| </item> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment