From 91e1ca0223020c56acf0c5641a0f51b3ef72fb34 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Sun, 2 Feb 2025 18:43:02 -0800 Subject: [PATCH] Change discussion link to point to comments at bottom of SPEC (#724) In accordance with https://github.com/scientific-python/specs/issues/369 --- layouts/partials/specs/spec_meta.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/layouts/partials/specs/spec_meta.html b/layouts/partials/specs/spec_meta.html index 8084d735..8b9034a7 100644 --- a/layouts/partials/specs/spec_meta.html +++ b/layouts/partials/specs/spec_meta.html @@ -3,7 +3,7 @@ {{/* Create field list */}} {{- $fieldList := slice -}} -{{- range $term := slice "author" "discussion" "history" "endorsed-by" -}} +{{- range $term := slice "author" "history" "endorsed-by" -}} {{- $def := index $.Params $term }} {{- if eq $term "author" }} {{- $term = "authors" }} @@ -11,8 +11,6 @@ {{- $def = slice $def }} {{- end }} {{- $def = delimit $def ", " }} - {{- else if (eq $term "discussion") }} - {{- $def = $def | markdownify }} {{- else if (eq $term "history") }} {{- $def = printf "https://github.com/scientific-python/specs/commits/main/%s" $filename | markdownify }} {{- else if and (eq $term "endorsed-by") (reflect.IsSlice $def) }} @@ -25,6 +23,7 @@ {{- end }} {{- $fieldList = $fieldList | append (dict "term" ( $term | humanize ) "def" $def ) -}} {{- end -}} +{{ $fieldList = $fieldList | append (dict "term" "Discussion" "def" ("[Comments below](#discourse-comments)" | markdownify)) }} {{- $specMetaBody := partial "_elements/field-list.html" (dict "entries" $fieldList) -}} {{/* Add draft warning */}}