about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-08-10 21:32:28 -0500
committerCase Duckworth2022-08-10 21:32:28 -0500
commitcd1f2ac93834a1e58a7ce0dc0547c5533b18b6af (patch)
tree487a7ef3169d750a5f276a681c13a64ae3f030ae
parentAdd extra fun stuff to feeds (diff)
downloadsfeed-cd1f2ac93834a1e58a7ce0dc0547c5533b18b6af.tar.gz
sfeed-cd1f2ac93834a1e58a7ce0dc0547c5533b18b6af.zip
Reset feed,site_url in the right place
-rwxr-xr-xsfeed_html.awk4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfeed_html.awk b/sfeed_html.awk index 175cc0a..8026f39 100755 --- a/sfeed_html.awk +++ b/sfeed_html.awk
@@ -97,6 +97,8 @@ FNR == 1 {
97 yt = "" 97 yt = ""
98 } 98 }
99 # extra metadata, yaaaaay 99 # extra metadata, yaaaaay
100 feed_url = ""
101 site_url = ""
100 URLS = envor("SFEED_DATA", ENVIRON["HOME"] "/.sfeed") "/urls/" safe_name 102 URLS = envor("SFEED_DATA", ENVIRON["HOME"] "/.sfeed") "/urls/" safe_name
101 getline feed_url < URLS 103 getline feed_url < URLS
102 getline site_url < URLS 104 getline site_url < URLS
@@ -233,8 +235,6 @@ function end_file()
233 printf "<header><h2%s><a class=\"anchor\" href=\"#%s\">#</a> %s</h2>\n", yt, name, name 235 printf "<header><h2%s><a class=\"anchor\" href=\"#%s\">#</a> %s</h2>\n", yt, name, name
234 # Feed links 236 # Feed links
235 printf "<nav class=\"flinks\">" 237 printf "<nav class=\"flinks\">"
236 feed_url = ""
237 site_url = ""
238 if (site_url) { 238 if (site_url) {
239 #print_link(site_url, "", (yt ? "chan" : "site"), "site-url") 239 #print_link(site_url, "", (yt ? "chan" : "site"), "site-url")
240 printf "<a class=\"site-url\" href=\"%s\">%s</a>\n", site_url, (yt ? "chan" : "site") 240 printf "<a class=\"site-url\" href=\"%s\">%s</a>\n", site_url, (yt ? "chan" : "site")