File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 33
44{{/* Create field list */}}
55{{- $fieldList := slice -}}
6- {{- range $term := slice "author" "discussion" " history" "endorsed-by" -}}
6+ {{- range $term := slice "author" "history" "endorsed-by" -}}
77 {{- $def := index $.Params $term }}
88 {{- if eq $term "author" }}
99 {{- $term = "authors" }}
1010 {{- if not (reflect.IsSlice $def) }}
1111 {{- $def = slice $def }}
1212 {{- end }}
1313 {{- $def = delimit $def ", " }}
14- {{- else if (eq $term "discussion") }}
15- {{- $def = $def | markdownify }}
1614 {{- else if (eq $term "history") }}
1715 {{- $def = printf "https://github.com/scientific-python/specs/commits/main/%s" $filename | markdownify }}
1816 {{- else if and (eq $term "endorsed-by") (reflect.IsSlice $def) }}
2523 {{- end }}
2624 {{- $fieldList = $fieldList | append (dict "term" ( $term | humanize ) "def" $def ) -}}
2725{{- end -}}
26+ {{ $fieldList = $fieldList | append (dict "term" "Discussion" "def" ("[Comments below](#discourse-comments)" | markdownify)) }}
2827{{- $specMetaBody := partial "_elements/field-list.html" (dict "entries" $fieldList) -}}
2928
3029{{/* Add draft warning */}}
You can’t perform that action at this time.
0 commit comments