diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 0035716ef..76513788f 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -49,7 +49,12 @@ {{ end }}
- {{ (or .Params.description .Summary) | plainify | safeHTML }} + {{ if and (eq .Section "commands") .IsPage }} + {{ $simpleCobraCommandShort := .RawContent | strings.ReplaceRE `(?s)^##\s.+?\n\n(.+?)\n\n.*` "$1" }} + {{ printf "%s." $simpleCobraCommandShort }} + {{ else }} + {{ (or .Params.description .Summary) | plainify | safeHTML }} + {{ end }}
{{ end }}