morpheus-site

morpheus.2f30.org website
git clone git://git.2f30.org/morpheus-site.git
Log | Files | Refs | LICENSE

commit 8d363e1587568ae7dc1d70155831a3ae8cfe01d1
parent 515ad565b1887f67e07a9c8a8f974e85146f1a6b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed Apr 23 12:13:35 +0200

remove rss / atom generation code

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
generate.sh | 66------------------------------------------------------------------
1 file changed, 0 insertions(+), 66 deletions(-)
diff --git a/generate.sh b/generate.sh @@ -101,8 +101,6 @@ pageheader() { <title>${pagetitle}</title> <link rel="stylesheet" href="style.css" type="text/css" media="screen" /> <link rel="stylesheet" href="print.css" type="text/css" media="print" /> - <link rel="alternate" type="application/rss+xml" title="${sitetitle} RSS Feed" href="rss.xml" /> - <link rel="alternate" type="application/atom+xml" title="${sitetitle} Atom Feed" href="atom.xml" /> <link rel="icon" type="image/png" href="/favicon.png" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Language" content="${sitelang}" /> @@ -178,42 +176,6 @@ while read -r meta; do !__EOF__ )" - # RSS item: append. - # NOTE: GMT is hard-coded since %z is not consistent, change accordingly. - contentrsspubdate=$(date "+%a, %d %b %Y %H:%M:%S GMT" -d "${timeupdated}") - contentrss="${contentrss}$( - cat <<!__EOF__ - <item> - <title>${title}</title> - <link>${urlfull}</link> - <pubDate>${contentrsspubdate}</pubDate> - <author>${author}</author> - <guid isPermaLink="false">${urlfull}</guid> - <description><![CDATA[${description}]]></description> - </item> -!__EOF__ -)" - - # Atom item: append. - contentatomupdated=$(date "+%Y-%m-%dT%H:%M:%SZ" -d "${timeupdated}") - contentatompublished=$(date "+%Y-%m-%dT%H:%M:%SZ" -d "${timecreated}") - contentatom="${contentatom}$( - cat <<!__EOF__ - <entry> - <title type="html"><![CDATA[${title}]]></title> - <link rel="alternate" type="text/html" href="${urlfull}" /> - <id>${urlfull}</id> - <updated>${contentatomupdated}</updated> - <published>${contentatompublished}</published> - <author> - <name>${author}</name> - <uri>${siteurlfull}</uri> - </author> - <summary type="html"><![CDATA[${description}]]></summary> - </entry> -!__EOF__ -)" - # sitemap: sitemap.xml, append item. contentsitemap="${contentsitemap}<url><loc>${urlfull}</loc></url>" @@ -227,34 +189,6 @@ $(find "${pagesdir}" -type f -name "*.sh" | sort -rn) # in the scope after the while loop (subshell / pipes prevents this in a # standard manner). -# RSS -cat <<!__EOF__ > "${outputdir}/rss.xml" -<?xml version="1.0" encoding="UTF-8"?> -<rss version="2.0"> - <channel> - <title>${sitetitle}</title> - <link>${siteurlfull}</link> - <description>${sitedescription}</description> - <language>${sitelang}</language> - ${contentrss} - </channel> -</rss> -!__EOF__ - -# Atom -cat <<!__EOF__ > "${outputdir}/atom.xml" -<?xml version="1.0" encoding="UTF-8"?> -<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="${sitelang}"> - <title type="text">${sitetitle}</title> - <subtitle type="text">${sitedescription}</subtitle> - <updated>${siteupdated}</updated> - <link rel="alternate" type="text/html" href="${siteurlfull}" /> - <id>${siteurlfull}/atom.xml</id> - <link rel="self" type="application/atom+xml" href="${siteurlfull}/atom.xml" /> - ${contentatom} -</feed> -!__EOF__ - # sitemap: sitemap.xml cat <<!__EOF__ > "${outputdir}/sitemap.xml" <?xml version="1.0" encoding="UTF-8"?><urlset>${contentsitemap}</urlset>