{{- /* Card with a summary of and link to a post. Accepts a dict with the following parameters: @context {Page} post: The post to display. @context {bool} show_section: Whether to display a badge with the name of the section the post was published under (default: false). @example: {{ partial "list/post-card.html" (dict "post" . "show_section" true) }} */ -}} {{- $post := .post -}} {{- $showSection := .show_section | default false -}}

{{ $post.Title }}

{{- if $showSection }} {{ lang.Translate ($post.Section | singularize) | default ($post.Section | singularize | title) }} {{- end }}
{{- with $post.Summary }}
{{ . }}
{{- end }} {{- with $post.Params.tags }} {{- end }}