about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xvienna17
1 files changed, 10 insertions, 7 deletions
diff --git a/vienna b/vienna index f6106ac..253f5c8 100755 --- a/vienna +++ b/vienna
@@ -461,18 +461,21 @@ sort_items() { # sort_items < ITEMS
461 461
462index_item() { # index_item PAGE 462index_item() { # index_item PAGE
463 ## Construct a single item in an index.html. 463 ## Construct a single item in an index.html.
464 echo "<li><a href=\"$LINK\">$(meta title "$1")</a></li>" 464 print "<li><a href=\"$LINK\">$(meta title "$1")</a></li>"
465} 465}
466 466
467feed_item() { # feed_item PAGE 467feed_item() { # feed_item PAGE
468 ## Construct a single item in an RSS feed. 468 ## Construct a single item in an RSS feed.
469 date="$(meta date "$1")" 469 date="$(meta date "$1")"
470 echo "<item>" 470 cat <<EOF
471 echo "<title>$(meta title "$1")</title>" 471<item>
472 echo "<link>$LINK</link>" 472 <title>$(meta title "$1")</title>
473 echo "<guid>$LINK</guid>" 473 <link>$LINK</link>
474 test -n "$date" && echo "<pubDate>$date</pubDate>" 474 <guid>$LINK</guid>
475 echo "</item>" 475 $(test -n "$date" && print "<pubDate>$date</pubDate>")
476 <description><![CDATA[$(filters<"$1")]]></description>
477</item>
478EOF
476} 479}
477 480
478static() { # static FILE... 481static() { # static FILE...