Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Larkin committed Dec 19, 2024
1 parent a4249c3 commit 3d9810f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion layouts/index.json
Original file line number Diff line number Diff line change
@@ -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. */ -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/publication/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
Expand Down

0 comments on commit 3d9810f

Please sign in to comment.