Files
RSSHub/lib/v2/huxiu/templates/description.art
T
Ethan Shen 804a4abbf3 feat(route): add 虎嗅频道 & 源流 (#13945)
* feat(route): add 虎嗅频道 & 源流

* fix: limit to 20

* docs: remove rssbud
2023-12-05 00:38:27 +08:00

46 lines
865 B
Arturo

{{ if (!video || !video.src) && image?.src }}
<figure>
<img
{{ if image.width }}
width={{ image.width }}
{{ /if }}
{{ if image.height }}
height={{ image.height }}
{{ /if }}
src="{{ image.src }}">
</figure>
{{ /if }}
{{ if audio?.src }}
<audio controls>
<source src="{{ audio.src }}" type="{{ audio.type }}">
</audio>
{{ /if }}
{{ if video?.src }}
<video
{{ set poster = video.poster || image?.src }}
{{ if poster }}
poster="{{ poster }}"
{{ /if }}
controls>
<source
src="{{ video.src }}"
type="{{ video.type }}">
<object data="{{ video.src }}">
<embed src="{{ video.src }}">
</object>
</video>
{{ /if }}
{{ if preface }}
{{@ preface }}
{{ /if }}
{{ if summary }}
{{@ summary }}
{{ /if }}
{{ if description }}
{{@ description }}
{{ /if }}