Files
RSSHub/lib/routes/dw/templates/description.art
T
quiniapiezoelectricityandTony 7ce029a051 feat(route): add dw route (#17575)
* feat(route): add dw route

* fix

* Apply suggestions from code review

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Apply suggestions from code review

* Apply suggestions with code review

* add mp4 video src

* fix: preload metadata

--------
2024-11-16 03:03:52 +08:00

23 lines
604 B
Arturo

{{ if teaser }}
<blockquote><p><em>{{ teaser }}</em></p></blockquote>
{{ /if }}
{{ if video }}
{{@ video }}
{{ else if mainImage }}
<figure>
<img
src="https://static.dw.com/image/{{ mainImage.targetId }}_{{ formatId }}.jpg"
alt="{{ mainImage.additionalInformation }}"
>
<figcaption>
{{ mainImage.description }}
<small>{{ imageI18n }}: {{ mainImage.target.licenserSupplement }}</small>
</figcaption>
</figure>
{{ /if }}
{{ if text }}
{{@ text }}
{{ /if }}
{{ if liveblog }}
{{@ liveblog }}
{{ /if }}