|
@@ -2,13 +2,14 @@
|
|
|
|
|
|
{{ $taxonomy := "authors" }}
|
|
{{ $taxonomy := "authors" }}
|
|
{{ with .Param $taxonomy }}
|
|
{{ with .Param $taxonomy }}
|
|
|
|
+ {{ $link_authors := site.Params.link_authors | default true }}
|
|
{{ range $index, $value := . }}
|
|
{{ range $index, $value := . }}
|
|
{{- $profile_page := site.GetPage (printf "/%s/%s" $taxonomy (. | urlize)) -}}
|
|
{{- $profile_page := site.GetPage (printf "/%s/%s" $taxonomy (. | urlize)) -}}
|
|
{{- $name := $profile_page.Params.name | default ($value|markdownify) -}}
|
|
{{- $name := $profile_page.Params.name | default ($value|markdownify) -}}
|
|
{{- if gt $index 0 }}, {{ end -}}
|
|
{{- if gt $index 0 }}, {{ end -}}
|
|
<span>
|
|
<span>
|
|
{{- with $profile_page -}}
|
|
{{- with $profile_page -}}
|
|
- <a href="{{.RelPermalink}}">{{$name}}</a>
|
|
|
|
|
|
+ {{ if $link_authors }}<a href="{{.RelPermalink}}">{{$name}}</a>{{else}}{{$name}}{{end}}
|
|
{{- else -}}
|
|
{{- else -}}
|
|
{{$name}}
|
|
{{$name}}
|
|
{{- end -}}
|
|
{{- end -}}
|