File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 3
3
< table >
4
4
{{ $meta_fields := (slice "homepage" "repository" "pypi" "libraries-io" "license" "license-type") }}
5
5
{{- range $attr := $meta_fields -}}
6
- {{ $val := $.Params.Get $attr }}
6
+ {{ $val := index $.Params $attr }}
7
7
< tr class ="field ">
8
8
< td class ="field-name ">
9
9
{{ $attr | humanize }}:
@@ -22,7 +22,7 @@ <h1>Endorsed SPECs</h1>
22
22
< ul class ="endorsed-specs-list ">
23
23
{{- range $specs -}}
24
24
{{ if not (in (lower .Title) "meta") }}
25
- {{ if in (.Params.Get "endorsed-by") $root.File.BaseFileName }}
25
+ {{ if in ( index .Params "endorsed-by" ) $root.File.BaseFileName }}
26
26
< li > < a href ="{{ .RelPermalink }} "> {{ .Title }}</ a > </ li >
27
27
{{- end }}
28
28
{{- end }}
Original file line number Diff line number Diff line change 4
4
< table >
5
5
{{ $meta_fields := (slice "author" "discussion" "history" "endorsed-by") }}
6
6
{{- range $attr := $meta_fields -}}
7
- {{ $val := $.Params.Get $attr }}
7
+ {{ $val := index $.Params $attr }}
8
8
{{ $attr := strings.TrimPrefix "spec_" $attr }}
9
9
{{- if eq $attr "author" }}
10
10
{{ $attr = "authors" }}
Original file line number Diff line number Diff line change 13
13
</ a >
14
14
</ td >
15
15
< td class ="spec__status ">
16
- {{- $endorsed_by := .Params.Get "endorsed-by" }}
16
+ {{- $endorsed_by := index .Params "endorsed-by" }}
17
17
{{- $N := len (or $endorsed_by "") }}
18
18
{{- if ge $N 2 }}
19
19
{{- range $idx, $el := $endorsed_by }}
Original file line number Diff line number Diff line change 1
1
[build .environment ]
2
2
PYTHON_VERSION = " 3.8" # netlify currently only support 2.7 and 3.8
3
- HUGO_VERSION = " 0.111.3 "
3
+ HUGO_VERSION = " 0.112.1 "
4
4
5
5
[[plugins ]]
6
6
package = " netlify-plugin-checklinks"
You can’t perform that action at this time.
0 commit comments