From 37ecef577ecdd873b4d061149b1a2860089cc0b9 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 25 Jul 2022 13:31:30 -0500 Subject: Fix linking error --- sfeed_html.awk | 27 ++++++++++++++------------- 1 file 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 { function bufprint(text, sep) { buf = buf text (sep ? sep : ((sep == 0) ? "" : "\n")) + sep = "" } function end_file() @@ -220,16 +221,16 @@ function end_file() getline feed_url < URLS getline site_url < URLS if (site_url) { - print_link(site_url, "", (yt ? "chan" : "site"), "site-url") - # printf "%s\n", site_url, (yt ? "chan" : "site") + #print_link(site_url, "", (yt ? "chan" : "site"), "site-url") + printf "%s\n", site_url, (yt ? "chan" : "site") } if (feed_url) { - print_link(feed_url, "", "feed", "feed-url") - # printf "feed\n", feed_url + #print_link(feed_url, "", "feed", "feed-url") + printf "feed\n", feed_url } # Top link - print_link("#", "back to top", "top", "top") - # printf "top" + #print_link("#", "back to top", "top", "top") + printf "top" printf "" printf "\n" # Feed entries @@ -310,15 +311,15 @@ function html_top() function print_link(href, title, text, class) { - link = "" - link = link text - link = link "" - bufprint(link, 0) + l = l " title=\"" title "\"" + l = l " rel=\"nofollow\" target=\"_blank\">" + l = l text + l = l "" + bufprint(l, 0) } function silo_class(link) -- cgit 1.4.1-21-gabe81