diff --git a/layouts/index.json b/layouts/index.json index b574d96..0d76860 100644 --- a/layouts/index.json +++ b/layouts/index.json @@ -1,4 +1,3 @@ -{{- /* Generate the search index. */ -}} {{- $index := slice -}} {{- $pages := site.RegularPages -}} {{- /* Add the index page of multi-page content separately since it's not in RegularPages above. */ -}} diff --git a/layouts/publication/single.html b/layouts/publication/single.html index 4af4486..e3bf374 100644 --- a/layouts/publication/single.html +++ b/layouts/publication/single.html @@ -3,7 +3,7 @@ {{ $pub_type_param := .Params.publication_types | default (slice 0) }} {{/* Convert string in form `"0"` to int (`0`) */}} -{{ $pub_type := (int (index $pub_type_param 0)) | default 0 }} +{{ $pub_type := (index $pub_type_param 0) | default 0 }} {{/* Validate Pub Type if defined */}} {{ if gt $pub_type (sub (len $pub_types) 1) }}