about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-07-26 10:29:43 -0500
committerCase Duckworth2022-07-26 10:29:43 -0500
commit67cde9aca4f1f1a514dd35fe8897fe76794aecea (patch)
treeaa5cae1ec6b515ae784085a596353db0c8ba2e68
parentFix header margin (diff)
downloadsfeed-67cde9aca4f1f1a514dd35fe8897fe76794aecea.tar.gz
sfeed-67cde9aca4f1f1a514dd35fe8897fe76794aecea.zip
Change default date format
-rwxr-xr-xsfeed_html.awk6
1 files changed, 5 insertions, 1 deletions
diff --git a/sfeed_html.awk b/sfeed_html.awk index dcbafae..f6e7664 100755 --- a/sfeed_html.awk +++ b/sfeed_html.awk
@@ -12,7 +12,11 @@ BEGIN {
12 in_aside = 0 # Don't show the feed in the sidebar 12 in_aside = 0 # Don't show the feed in the sidebar
13 # Formatting 13 # Formatting
14 if (! DATEFMT) { 14 if (! DATEFMT) {
15 DATEFMT = envor("SFEED_HTML_DATEFMT", "<span class=date>%F</span> <span class=time>%RZ</span>") 15 ddf = "<time title=\"%F %R UTC\">"
16 ddf = ddf "<span class=\"date\">%m-%d</span>" " "
17 ddf = ddf "<span class=\"time\">%R</span>"
18 ddf = ddf "</time>"
19 DATEFMT = envor("SFEED_HTML_DATEFMT", ddf)
16 } 20 }
17 if (! TITLE) { 21 if (! TITLE) {
18 TITLE = envor("SFEED_HTML_TITLE", "Planet ACDW") 22 TITLE = envor("SFEED_HTML_TITLE", "Planet ACDW")