morpheus-site

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

commit 04f5c1b7bfe1c2a9cd96730d0716c93c684c3f5b
parent 0001f4c2357ddc86fba3a73258a0c501faa0e907
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed, 23 Apr 2014 13:19:25 +0200

remove sitemap files, unused code

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

Diffstat:
Mgenerate.sh | 23-----------------------
1 file changed, 0 insertions(+), 23 deletions(-)

diff --git a/generate.sh b/generate.sh @@ -155,28 +155,10 @@ fi # try to make output dir. mkdir -p "${outputdir}" -> "${outputdir}/urllist.txt" # truncate urllist.txt (sitemap). -contentindex="" -contentrss="" -contentatom="" -contentsitemap="" while read -r meta; do pagereset pageread "$meta" pagecontent > "${outputdir}/${outfile}" - - # index / posts item: append. - contentindex="${contentindex}$(cat <<!__EOF__ - <tr><td>${dateupdated}</td> - <td><a href="${url}" title="${description}">${title}</a></td></tr> -!__EOF__ -)" - - # sitemap: sitemap.xml, append item. - contentsitemap="${contentsitemap}<url><loc>${urlfull}</loc></url>" - - # sitemap: urllist.txt, append item, write directly to file. - printf '%s\n' "${urlfull}" >> "${outputdir}/urllist.txt" done <<!FILELIST $(find "${pagesdir}" -type f -name "*.sh" | sort -rn) !FILELIST @@ -184,8 +166,3 @@ $(find "${pagesdir}" -type f -name "*.sh" | sort -rn) # NOTE: above heredoc is used to make sure content* variables are known # in the scope after the while loop (subshell / pipes prevents this in a # standard manner). - -# sitemap: sitemap.xml -cat <<!__EOF__ > "${outputdir}/sitemap.xml" -<?xml version="1.0" encoding="UTF-8"?><urlset>${contentsitemap}</urlset> -!__EOF__