Assign template context to var

This commit is contained in:
Will Faught
2023-01-29 10:56:57 -08:00
parent 548af63634
commit 64e148ab6f
32 changed files with 262 additions and 199 deletions

View File

@@ -1,9 +1,11 @@
{{ $page := . }}
{{ $result := "" }}
{{ if .Params.authors }}
{{ if $page.Params.authors }}
{{ $names := slice }}
{{ range .Params.authors }}
{{ range $page.Params.authors }}
{{ if eq (printf "%T" .) "string" }}
{{ $names = $names | append (index site.Params.authors .).name }}
{{ else }}