Replaced XHTML content in Atom feed with HTML
Getty Ritter
9 years ago
| 1 | 1 | ;; template-ey things and style things |
| 2 | ||
| 3 | (load "libs.scm") | |
| 2 | 4 | |
| 3 | 5 | ;; The date format we're using is {year:04}-{month:02}-{day:02}. |
| 4 | 6 | (define (date->string date) |
| 23 | 25 | (name "Getty Ritter") |
| 24 | 26 | (email "gettyritter@gmail.com")) |
| 25 | 27 | (content |
| 26 | (@ (type "xhtml")) | |
| 27 | (div (@ (xmlns "http://www.w3.org/1999/xhtml")) | |
| 28 |
|
|
| 28 | (@ (type "html")) | |
| 29 | ,(++ "<![CDATA[" (serialize-sxml (post-content post)) "]]>"))))) | |
| 29 | 30 | |
| 30 | 31 | (define (atom-feed posts) |
| 31 | 32 | (let ((updated (date->tz (post-time (car posts))))) |