|
@@ -26,10 +26,10 @@
|
|
|
{{- $permalink := .Permalink -}}
|
|
|
|
|
|
{{/* Correct the title and URL for author profile pages. */}}
|
|
|
- {{- if eq .Section "author" -}}
|
|
|
+ {{- if eq .Section "authors" -}}
|
|
|
{{- $title = .Params.name -}}
|
|
|
- {{- $dir := path.Base (path.Split .Path).Dir -}}
|
|
|
- {{- with site.GetPage (printf "/authors/%s" (path.Base (path.Split .Path).Dir)) -}}
|
|
|
+ {{- $username := path.Base (path.Split .Path).Dir -}}
|
|
|
+ {{- with site.GetPage (printf "/authors/%s" $username) -}}
|
|
|
{{- $permalink = .Permalink -}}
|
|
|
{{- $rel_permalink = .RelPermalink -}}
|
|
|
{{- end -}}
|
|
@@ -40,9 +40,9 @@
|
|
|
{{- if gt $authorLen 0 -}}
|
|
|
{{- $authors = slice -}}
|
|
|
{{- range $k, $v := .Params.authors -}}
|
|
|
- {{- $person_page_path := (printf "/author/%s" (urlize $v)) -}}
|
|
|
+ {{- $person_page_path := (printf "/authors/%s" (urlize $v)) -}}
|
|
|
{{- $person_page := site.GetPage $person_page_path -}}
|
|
|
- {{- if $person_page -}}
|
|
|
+ {{- if and $person_page $person_page.File -}}
|
|
|
{{- $person := $person_page.Params -}}
|
|
|
{{- $authors = $authors | append $person.name -}}
|
|
|
{{- else -}}
|