blogamore/layouts/shortcodes/download-feed.html

7 lines
258 B
HTML

{{ $dataName := .Get "data" }}
<ul>
{{ range (index .Site.Data (split $dataName "/")) }}
<li><a href="{{ .url | safeURL }}">{{ .title }}{{ with .filesize }} ({{ int (div (div . 1024) 1024) }} MB){{ end }}</a><br/>{{ .comment }}</li>
{{ end }}
</ul>