Commit 91eb987e authored by Laura Kalbag's avatar Laura Kalbag
Browse files

Allow listPost custom names to be anything

parent 4850b90e
......@@ -28,10 +28,13 @@
{{- partial "post/thumbnail.html" . }}
{{/* if the post/section has something for listPost: in its frontmatter, or no listPost parameter in its frontmatter: */}}
{{/* if the post/section has any other listPost parameter in its frontmatter: */}}
{{- else }}
{{- partial "post/summary.html" . }}
{{/* use the partial inside .hugo/layouts/post/ that matches the listPost value */}}
{{ $partialName := printf "post/%v.html" $listPost }}
{{- partial $partialName . }}
{{- end }}
</li>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment