mirror of
https://github.com/miniflux/v2.git
synced 2025-07-27 17:28:38 +00:00
Ignore enclosures without URL
This commit is contained in:
parent
cb494ac416
commit
997e9422eb
9 changed files with 144 additions and 12 deletions
|
@ -95,6 +95,7 @@
|
|||
<details class="entry-enclosures">
|
||||
<summary>{{ t "page.entry.attachments" }} ({{ len .entry.Enclosures }})</summary>
|
||||
{{ range .entry.Enclosures }}
|
||||
{{ if ne .URL "" }}
|
||||
<div class="entry-enclosure">
|
||||
{{ if hasPrefix .MimeType "audio/" }}
|
||||
<div class="enclosure-audio">
|
||||
|
@ -119,6 +120,7 @@
|
|||
<small>{{ if gt .Size 0 }} - <strong>{{ formatFileSize .Size }}</strong>{{ end }}</small>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</details>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue