Files
RSSHub/lib/v2/hellogithub/templates/volume.art
T
Ethan Shen a6b0803951 feat(route): add HelloGitHub (#11000)
* feat(route): add HelloGitHub

* fix typo

* fix: wrong templates

* fix typo
2022-10-05 22:30:49 +08:00

36 lines
703 B
Arturo

{{ if data }}
{{ each data d }}
<div>
<h1>{{ d.category_name }}</h1>
{{ each d.items item }}
<div>
<h2>
<a href="{{ item.github_url }}">{{ item.name }}</a>
</h2>
<table>
<tbody>
<tr>
<th>Stars</th>
<td>{{ item.stars }}</td>
</tr>
<tr>
<th>Forks</th>
<td>{{ item.forks }}</td>
</tr>
<tr>
<th>Watch</th>
<td>{{ item.watch }}</td>
</tr>
</tbody>
</table>
<p>{{@ item.description | render }}</p>
{{ if item.image_url }}
<figure>
<img src="{{ item.image_url }}">
</figure>
{{ /if }}
</div>
{{ /each }}
</div>
{{ /each }}
{{ /if }}