about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xsfeed_html.awk27
1 files changed, 14 insertions, 13 deletions
diff --git a/sfeed_html.awk b/sfeed_html.awk index 447c26a..ce2211a 100755 --- a/sfeed_html.awk +++ b/sfeed_html.awk
@@ -203,6 +203,7 @@ END {
203function bufprint(text, sep) 203function bufprint(text, sep)
204{ 204{
205 buf = buf text (sep ? sep : ((sep == 0) ? "" : "\n")) 205 buf = buf text (sep ? sep : ((sep == 0) ? "" : "\n"))
206 sep = ""
206} 207}
207 208
208function end_file() 209function end_file()
@@ -220,16 +221,16 @@ function end_file()
220 getline feed_url < URLS 221 getline feed_url < URLS
221 getline site_url < URLS 222 getline site_url < URLS
222 if (site_url) { 223 if (site_url) {
223 print_link(site_url, "", (yt ? "chan" : "site"), "site-url") 224 #print_link(site_url, "", (yt ? "chan" : "site"), "site-url")
224 # printf "<a class=\"site-url\" href=\"%s\">%s</a>\n", site_url, (yt ? "chan" : "site") 225 printf "<a class=\"site-url\" href=\"%s\">%s</a>\n", site_url, (yt ? "chan" : "site")
225 } 226 }
226 if (feed_url) { 227 if (feed_url) {
227 print_link(feed_url, "", "feed", "feed-url") 228 #print_link(feed_url, "", "feed", "feed-url")
228 # printf "<a class=\"feed-url\" href=\"%s\">feed</a>\n", feed_url 229 printf "<a class=\"feed-url\" href=\"%s\">feed</a>\n", feed_url
229 } 230 }
230 # Top link 231 # Top link
231 print_link("#", "back to top", "top", "top") 232 #print_link("#", "back to top", "top", "top")
232 # printf "<a class=\"top\" href=\"#\">top</a>" 233 printf "<a class=\"top\" href=\"#\">top</a>"
233 printf "</nav>" 234 printf "</nav>"
234 printf "</header>\n" 235 printf "</header>\n"
235 # Feed entries 236 # Feed entries
@@ -310,15 +311,15 @@ function html_top()
310 311
311function print_link(href, title, text, class) 312function print_link(href, title, text, class)
312{ 313{
313 link = "<a href=\"" href "\"" 314 l = "<a href=\"" href "\""
314 if (class) { 315 if (class) {
315 link = link " class=\"" class "\"" 316 l = l " class=\"" class "\""
316 } 317 }
317 link = link " title=\"" title "\"" 318 l = l " title=\"" title "\""
318 link = link " rel=\"nofollow\" target=\"_blank\">" 319 l = l " rel=\"nofollow\" target=\"_blank\">"
319 link = link text 320 l = l text
320 link = link "</a>" 321 l = l "</a>"
321 bufprint(link, 0) 322 bufprint(l, 0)
322} 323}
323 324
324function silo_class(link) 325function silo_class(link)