diff options
-rwxr-xr-x | vienna | 17 |
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 | ||
462 | index_item() { # index_item PAGE | 462 | index_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 | ||
467 | feed_item() { # feed_item PAGE | 467 | feed_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> | ||
478 | EOF | ||
476 | } | 479 | } |
477 | 480 | ||
478 | static() { # static FILE... | 481 | static() { # static FILE... |