trwnh.com/unified.test.hugo/layouts/partials/components/alt-formats.html

10 lines
No EOL
340 B
HTML

{{- with .AlternativeOutputFormats }}
<div class="alt-formats">
<p>Alternate formats:</p>
<ul class="alt-formats-list">
{{- range . }}
<li class="alt-formats-list-item">{{.Name}} (<span class="mediaType">{{.MediaType}}</span>): <a href="{{.Permalink}}"><span class="path">{{.RelPermalink}}</span></a></li>
{{- end }}
</ul>
</div>
{{- end }}