--- plugins/rss2.sh 2004/12/10 06:11:56 1.2 +++ plugins/rss2.sh 2005/01/03 19:44:31 1.3 @@ -27,8 +27,8 @@ make_rssfeed(){ feed_outfile="$1" MKPAGE_OUTFILE="$feed_outfile" - RSS2_FEED_URL="$BLOG_URL/$NB_RSS2File" - [ ! -z "$NB_RSS2CatFile" ] && RSS2_FEED_URL="$BLOG_URL/$ARCHIVES_DIR/$NB_RSS2CatFile" + BLOG_FEED_URL="$BLOG_URL" + [ ! -z "$NB_ArchiveFile" ] && BLOG_FEED_URL="$BLOG_URL/$ARCHIVES_DIR/$NB_ArchiveFile" cat > "$MKPAGE_OUTFILE" <<-EOF @@ -39,7 +39,7 @@ > $BLOG_TITLE - $RSS2_FEED_URL + $BLOG_FEED_URL $BLOG_DESCRIPTION $BLOG_LANG $NB_EntryAuthor @@ -102,6 +102,7 @@ if [ -f "$NB_DATA_DIR/$cat_db" ]; then #NB_RSS2CatFile=`chg_suffix "$cat_db" "$NB_SYND_FILETYPE"` NB_RSS2CatFile=`echo "$cat_db" |sed -e 's/[\.]db/-rss.'$NB_SYND_FILETYPE'/g'` + NB_ArchiveFile=`chg_suffix "$cat_db" "$NB_FILETYPE"` NB_ArchiveTitle=`sed 1q "$NB_DATA_DIR/$cat_db" |esc_chars` nb_msg "generating rss $NB_RSS2Ver feed for category ..." build_rssfeed "$cat_db"