Browse Source

remove icon img alt text

krvpb024 2 years ago
parent
commit
facf17db3f

+ 1 - 3
internal/template/templates/views/bookmark_entries.html

@@ -28,9 +28,7 @@
                 <h2 id="entry-title-{{ .ID }}" class="item-title">
                 <h2 id="entry-title-{{ .ID }}" class="item-title">
                     <a href="{{ route "starredEntry" "entryID" .ID }}">
                     <a href="{{ route "starredEntry" "entryID" .ID }}">
                         {{ if ne .Feed.Icon.IconID 0 }}
                         {{ if ne .Feed.Icon.IconID 0 }}
-                        <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" loading="lazy" alt="{{ .Feed.Title }}">
-                        {{ else }}
-                        <span class="sr-only">{{ .Feed.Title }}</span>
+                        <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" loading="lazy" alt="">
                         {{ end }}
                         {{ end }}
                         {{ .Title }}
                         {{ .Title }}
                     </a>
                     </a>

+ 1 - 3
internal/template/templates/views/category_entries.html

@@ -81,9 +81,7 @@
                         {{ end }}
                         {{ end }}
                     >
                     >
                         {{ if ne .Feed.Icon.IconID 0 }}
                         {{ if ne .Feed.Icon.IconID 0 }}
-                            <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" loading="lazy" alt="{{ .Feed.Title }}">
-                        {{ else }}
-                            <span class="sr-only">{{ .Feed.Title }}</span>
+                            <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" loading="lazy" alt="">
                         {{ end }}
                         {{ end }}
                         {{ .Title }}
                         {{ .Title }}
                     </a>
                     </a>

+ 1 - 3
internal/template/templates/views/feed_entries.html

@@ -108,9 +108,7 @@
                         {{ end }}
                         {{ end }}
                     >
                     >
                         {{ if ne .Feed.Icon.IconID 0 }}
                         {{ if ne .Feed.Icon.IconID 0 }}
-                        <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" loading="lazy" alt="{{ .Feed.Title }}">
-                        {{ else }}
-                        <span class="sr-only">{{ .Feed.Title }}</span>
+                        <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" loading="lazy" alt="">
                         {{ end }}
                         {{ end }}
                         {{ .Title }}
                         {{ .Title }}
                     </a>
                     </a>

+ 1 - 3
internal/template/templates/views/history_entries.html

@@ -47,9 +47,7 @@
                 <h2 id="entry-title-{{ .ID }}" class="item-title">
                 <h2 id="entry-title-{{ .ID }}" class="item-title">
                     <a href="{{ route "readEntry" "entryID" .ID }}">
                     <a href="{{ route "readEntry" "entryID" .ID }}">
                         {{ if ne .Feed.Icon.IconID 0 }}
                         {{ if ne .Feed.Icon.IconID 0 }}
-                        <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" loading="lazy" alt="{{ .Feed.Title }}">
-                        {{ else }}
-                        <span class="sr-only">{{ .Feed.Title }}</span>
+                        <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" loading="lazy" alt="">
                         {{ end }}
                         {{ end }}
                         {{ .Title }}
                         {{ .Title }}
                     </a>
                     </a>

+ 1 - 3
internal/template/templates/views/shared_entries.html

@@ -44,9 +44,7 @@
                 <h2 id="entry-title-{{ .ID }}" class="item-title">
                 <h2 id="entry-title-{{ .ID }}" class="item-title">
                     <a href="{{ route "readEntry" "entryID" .ID }}">
                     <a href="{{ route "readEntry" "entryID" .ID }}">
                         {{ if ne .Feed.Icon.IconID 0 }}
                         {{ if ne .Feed.Icon.IconID 0 }}
-                        <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" loading="lazy" alt="{{ .Feed.Title }}">
-                        {{ else }}
-                        <span class="sr-only">{{ .Feed.Title }}</span>
+                        <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" loading="lazy" alt="">
                         {{ end }}
                         {{ end }}
                         {{ .Title }}
                         {{ .Title }}
                     </a>
                     </a>

+ 1 - 3
internal/template/templates/views/unread_entries.html

@@ -55,9 +55,7 @@
                 <h2 id="entry-title-{{ .ID }}" class="item-title">
                 <h2 id="entry-title-{{ .ID }}" class="item-title">
                     <a href="{{ route "unreadEntry" "entryID" .ID }}">
                     <a href="{{ route "unreadEntry" "entryID" .ID }}">
                         {{ if ne .Feed.Icon.IconID 0 }}
                         {{ if ne .Feed.Icon.IconID 0 }}
-                        <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" loading="lazy" alt="{{ .Feed.Title }}">
-                        {{ else }}
-                        <span class="sr-only">{{ .Feed.Title }}</span>
+                        <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" loading="lazy" alt="">
                         {{ end }}
                         {{ end }}
                         {{ .Title }}
                         {{ .Title }}
                     </a>
                     </a>