blogamore/layouts/shortcodes/download-feed.html

9 lines
321 B
HTML
Raw Normal View History

{{ $dataName := .Get "data" }}
{{ $baseDir := path.Dir .Page.File }}
<ul>
{{ range (index .Site.Data (split $dataName "/")) }}
<li><a href="{{ (path.Join $baseDir .filename) | absURL }}">{{ .title }}{{ with .filesize }} ({{ int (div (div . 1024) 1024) }} MB){{ end }}</a><br/>{{ .comment }}</li>
{{ end }}
</ul>