diff options
author | Case Duckworth | 2023-01-09 15:13:20 -0600 |
---|---|---|
committer | Case Duckworth | 2023-01-09 15:13:20 -0600 |
commit | 7ba6d9b0c1fd7cb29ca3cb86bae73861df08c0f9 (patch) | |
tree | 8905f3c2d1bb12b98977fa5354c0526786e2040d | |
parent | Add plugins/minimize.sh (diff) | |
download | vienna-7ba6d9b0c1fd7cb29ca3cb86bae73861df08c0f9.tar.gz vienna-7ba6d9b0c1fd7cb29ca3cb86bae73861df08c0f9.zip |
Change default feed_item template
-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... |