~anjan/momi.ca

1 files changed, 4 insertions(+), 1 deletions(-)

M rssg
M rssg => rssg +4 -1
@@ 39,10 39,11 @@ main () {
	description="Anjandev Momi's Homepage"

	items=$(	echo "$html" | get_items)
	managingEditor="Anjandev Momi <anjan@momi.ca>"

	rss=$(		echo "$items" |
			render_items "$base" "$base_url" |
			render_feed "$url" "$title" "$description")
			render_feed "$url" "$title" "$description" "$managingEditor")

	>&2 echo "[rssg] ${index_file##$(pwd)/} $(echo "$rss" | grep -c '<item>') items"
	echo "$rss"


@@ 167,6 168,7 @@ render_feed() {
	url="$1"
	title=$(echo "$2" | remove_nbsp)
	description="$3"
	editor="$4"

	base_url="$(echo "$url" | cut -d '/' -f1-3)"



@@ 177,6 179,7 @@ render_feed() {
<title>'"$title"'</title>
<description>'"$description"'</description>
<link>'"$base_url"'/</link>
<managingEditor>'"$editor"'</managingEditor>
<lastBuildDate>'"$(date_rfc_822 "now")"'</lastBuildDate>
'"$(cat)"'
</channel></rss>'