diff options
author | Case Duckworth | 2022-07-26 10:29:43 -0500 |
---|---|---|
committer | Case Duckworth | 2022-07-26 10:29:43 -0500 |
commit | 67cde9aca4f1f1a514dd35fe8897fe76794aecea (patch) | |
tree | aa5cae1ec6b515ae784085a596353db0c8ba2e68 | |
parent | Fix header margin (diff) | |
download | sfeed-67cde9aca4f1f1a514dd35fe8897fe76794aecea.tar.gz sfeed-67cde9aca4f1f1a514dd35fe8897fe76794aecea.zip |
Change default date format
-rwxr-xr-x | sfeed_html.awk | 6 |
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") |