Skip to content

Commit 91e1ca0

Browse files
authored
Change discussion link to point to comments at bottom of SPEC (#724)
In accordance with scientific-python/specs#369
1 parent 36d717d commit 91e1ca0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

layouts/partials/specs/spec_meta.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
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) }}
@@ -25,6 +23,7 @@
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 */}}

0 commit comments

Comments
 (0)