Files
RSSHub/lib/routes/ifeng/templates/description.art
T
2024-03-01 01:24:49 +08:00

16 lines
391 B
Arturo

{{ if image }}
<figure>
<img src="{{ image.url }}" height="{{ image.height }}" width="{{ image.width }}">
</figure>
{{ /if }}
{{ if description }}
{{ each description d }}
{{ if d.attachmentType === 'video' }}
<video controls poster="{{ d.bigPosterUrl }}">
<source src="{{ d.playUrl }}">
</video>
{{ else }}
{{@ d.replace(/data-lazyload=/g, 'src=') }}
{{ /if }}
{{ /each }}
{{ /if }}