~npisanti/npisantidotcomssg

c9cb99ed1ba198ba235cac9bb9e1821ffafa26f8 — Nicola Pisanti a month ago 01a0ec6
fixed RSS
2 files changed, 11 insertions(+), 7 deletions(-)

M build.sh
M input/base/rssbase.xml
M build.sh => build.sh +11 -5
@@ 91,7 91,7 @@ end

function navigation_header #-----------------------------------------------------
	# argument 1 is the tab to highlight
	set -l tabs "feed" "more" "contact" "webring"
	set -l tabs "feed" "more" "contact" "rss" "webring"
	set text "<header>"

	for x in $tabs


@@ 110,6 110,8 @@ function navigation_header #----------------------------------------------------
			set -a text "$pretab<a href=\"../pages/more.html\">more</a>$posttab&nbsp;"
		case contact 
			set -a text "$pretab<a href=\"../pages/contact.html\">contact</a>$posttab&nbsp;"
		case rss
			set -a text "$pretab<a href=\"../rss.xml\">rss</a>$posttab&nbsp;"	
		case webring
			set -a text "$pretab<a href=\"https://webring.xxiivv.com/\">webring</a>$posttab&nbsp;"
		end


@@ 300,8 302,12 @@ end

function build_rss #-------------------------------------------------------------
    printf "building RSS"
    set list (cat input/journal/rss.list)    
    set text "\n"(cat input/base/rssbase.xml)

    set list (cat input/journal/rss.list)  
    
    set text "<?xml version='1.0' encoding='UTF-8' ?>"
 
    set -a text "\n<rss version=\"2.0\">"
    set -a text "\n"(cat input/base/rssbase.xml)

    for p in $list
        if test -n $p


@@ 328,8 334,8 @@ function build_rss #------------------------------------------------------------
        end
    end

    set -a text "\t</channel>"
    set -a text "\t</rss>"    
    set -a text "\n\t</channel>"
    set -a text "\n</rss>"    
    set text (echo $text | sed -e "s|SITEROOTPATH|http://npisanti.com|g") 
    echo -e "$text" > "$OUTFOLDER/rss.xml"
    printf "\n"

M input/base/rssbase.xml => input/base/rssbase.xml +0 -2
@@ 1,5 1,3 @@
<?xml version='1.0' encoding='UTF-8' ?>
<rss version="2.0">
	<channel>
		<title>Nicola Pisanti's Journal</title>
		<link>http://npisanti.com/journal/</link>