tobast.fr-hugo/layouts/shortcodes/list-unpublished-written.html

29 lines
788 B
HTML

<ul class="unpublished">
{{ $authors := .Page.Params.authors }}
{{ range sort .Page.Params.unpublished "date" "desc" }}
<li>
<span class="title">{{ .title }}</span>,
<span class="freetext">{{ .freetext }}</span>. With
<span class="authors">
{{ range .with }}
{{ $author := . }}
{{ with $authors }}
{{ with (index . $author) }}
<span class="author">
{{- if isset . "page" -}}
<a href="{{ .page }}">{{ .name }}</a>
{{- else -}}
{{ .name -}}
{{- end -}}
</span>
{{- end -}}
{{- end -}}
{{- end -}}
</span>.
{{ range .links }}
<span class="doclink"><a href="{{ .url }}">[{{ .name }}]</a></span>
{{ end }}
</li>
{{ end }}
</ul>