mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-08 07:29:08 +03:00
Update rss formatting.
This commit is contained in:
parent
a0b735379a
commit
ad32b3f219
@ -50,8 +50,7 @@ generate feed =
|
|||||||
object
|
object
|
||||||
[ ( "rss"
|
[ ( "rss"
|
||||||
, Dict.fromList
|
, Dict.fromList
|
||||||
[ ( "xmlns", string "http://www.w3.org/2005/Atom" )
|
[ ( "xmlns:dc", string "http://purl.org/dc/elements/1.1/" )
|
||||||
, ( "xmlns:dc", string "http://purl.org/dc/elements/1.1/" )
|
|
||||||
, ( "xmlns:content", string "http://purl.org/rss/1.0/modules/content/" )
|
, ( "xmlns:content", string "http://purl.org/rss/1.0/modules/content/" )
|
||||||
, ( "xmlns:atom", string "http://www.w3.org/2005/Atom" )
|
, ( "xmlns:atom", string "http://www.w3.org/2005/Atom" )
|
||||||
, ( "version", string "2.0" )
|
, ( "version", string "2.0" )
|
||||||
@ -100,11 +99,8 @@ itemXml item =
|
|||||||
|
|
||||||
formatDate : Date -> String
|
formatDate : Date -> String
|
||||||
formatDate date =
|
formatDate date =
|
||||||
Date.toIsoString date
|
Date.format "EEE, dd MMM yyyy" date
|
||||||
|
++ " UTC"
|
||||||
|
|
||||||
|
|
||||||
--Date.format "EE, dd MM yyyy" date
|
|
||||||
|
|
||||||
|
|
||||||
generatorXml :
|
generatorXml :
|
||||||
|
Loading…
Reference in New Issue
Block a user