about summary refs log tree commit diff stats
path: root/sfeed_html.awk
diff options
context:
space:
mode:
Diffstat (limited to 'sfeed_html.awk')
-rwxr-xr-xsfeed_html.awk8
1 files changed, 6 insertions, 2 deletions
diff --git a/sfeed_html.awk b/sfeed_html.awk index 34bf528..175cc0a 100755 --- a/sfeed_html.awk +++ b/sfeed_html.awk
@@ -96,7 +96,13 @@ FNR == 1 {
96 } else { 96 } else {
97 yt = "" 97 yt = ""
98 } 98 }
99 # extra metadata, yaaaaay
99 URLS = envor("SFEED_DATA", ENVIRON["HOME"] "/.sfeed") "/urls/" safe_name 100 URLS = envor("SFEED_DATA", ENVIRON["HOME"] "/.sfeed") "/urls/" safe_name
101 getline feed_url < URLS
102 getline site_url < URLS
103 getline feed_tags < URLS
104 # put more lines to read here
105 close(URLS)
100 # State variables 106 # State variables
101 stamp = "." 107 stamp = "."
102 buf = "" 108 buf = ""
@@ -229,8 +235,6 @@ function end_file()
229 printf "<nav class=\"flinks\">" 235 printf "<nav class=\"flinks\">"
230 feed_url = "" 236 feed_url = ""
231 site_url = "" 237 site_url = ""
232 getline feed_url < URLS
233 getline site_url < URLS
234 if (site_url) { 238 if (site_url) {
235 #print_link(site_url, "", (yt ? "chan" : "site"), "site-url") 239 #print_link(site_url, "", (yt ? "chan" : "site"), "site-url")
236 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")