Files
Ethan Shen 4d23701be1 fix(route): 武汉大学新闻网 (#13502)
* fix(route): 武汉大学新闻网

* fix typo

* docs: fix docs

---------
2023-10-12 21:33:07 +08:00

39 lines
744 B
Arturo

{{ if description }}
{{@ description }}
{{ /if }}
{{ if image }}
<figure>
<img src="{{ image.src }}"
{{ if image.alt }}
alt={{ image.alt }}
{{ /if }}
{{ if image.width }}
width={{ image.width }}
{{ /if }}
>
</figure>
{{ /if }}
{{ if video }}
<video controls
{{ if video.width }}
width={{ video.width }}
{{ /if }}
{{ if video.height }}
height={{ video.height }}
{{ /if }}>
<source src="{{ video.src }}" type="video/{{ video.src.split('.').pop() }}">
</video>
{{ /if }}
{{ if attachments && attachments.length > 0 }}
<b>附件</b>
<ul>
{{ each attachments attachment }}
<li>
<a href="{{ attachment.link }}">{{ attachment.title }}</a>
</li>
{{ /each }}
</ul>
{{ /if }}