about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xsfeed_html.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/sfeed_html.sh b/sfeed_html.sh index 0b1dc95..0caf0c4 100755 --- a/sfeed_html.sh +++ b/sfeed_html.sh
@@ -130,11 +130,13 @@ html_feed() { # html_feed FEED(file) => HTML
130 printf "%s", "<td class=\"entry-extra\">" 130 printf "%s", "<td class=\"entry-extra\">"
131 if (enclosure) { 131 if (enclosure) {
132 stamp = "@" 132 stamp = "@"
133 printf "%s", "<a href=\"" enclosure "\" target=\"_blank\">" stamp "</a>" 133 extra_title = " title=\"enclosure\""
134 printf "%s", "<a href=\"" enclosure "\"" extra_title " target=\"_blank\">" stamp "</a>"
134 } 135 }
135 if ((link != id) && (id != enclosure) && (id ~ /^https?:/)) { 136 if ((link != id) && (id != enclosure) && (id ~ /^https?:/)) {
136 stamp = "#" 137 stamp = "&"
137 printf "%s", "<a href=\"" id "\" target=\"_blank\">" stamp "</a>" 138 extra_title = " title=\"alternate link\""
139 printf "%s", "<a href=\"" id "\"" extra_title " target=\"_blank\">" stamp "</a>"
138 } 140 }
139 print "</td>" 141 print "</td>"
140 printf "<td class=\"entry-title%s", silo_links(link) 142 printf "<td class=\"entry-title%s", silo_links(link)
@@ -158,7 +160,6 @@ function silo_links(link) {
158' "$1" | filter_invidious)" 160' "$1" | filter_invidious)"
159 if [ -z "$entries" ]; then return 1; fi 161 if [ -z "$entries" ]; then return 1; fi
160 echo "<section id=\"$filename\">" 162 echo "<section id=\"$filename\">"
161 # TODO: Include a link back to the website
162 case "$filename" in 163 case "$filename" in
163 *\[yt\]) yt=" class=\"yt\"" ;; 164 *\[yt\]) yt=" class=\"yt\"" ;;
164 *) yt="" ;; 165 *) yt="" ;;