mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-14 23:19:21 +00:00
Co-authored-by: Chris Herborth <chrish@taffer.ca>
This commit is contained in:
1 parent
1f82608cd6
commit
cff88c00f5
1 file changed
+23
-21
@@ -116,29 +116,31 @@
|
|||||||
{{ $baseURL = delimit (slice $baseURL "/") "" }}
|
{{ $baseURL = delimit (slice $baseURL "/") "" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Params.showAuthor | default (site.Params.article.showAuthor | default true) }}
|
{{ if .Page.Params.authors }}
|
||||||
{{ $showAuthor = 1 }}
|
{{ range $author := .Page.Params.authors }}
|
||||||
{{ partial "author.html" . }}
|
{{ $authorData := index $authorsData $author }}
|
||||||
{{ end }}
|
{{- if $authorData -}}
|
||||||
|
{{ range $taxonomyname, $taxonomy := $taxonomies }}
|
||||||
{{ range $author := .Page.Params.authors }}
|
{{ if (eq $taxonomyname $author) }}
|
||||||
{{ $authorData := index $authorsData $author }}
|
{{ $taxonomyLink = delimit (slice $baseURL "authors/" $author "/") "" }}
|
||||||
{{- if $authorData -}}
|
{{ end }}
|
||||||
{{ range $taxonomyname, $taxonomy := $taxonomies }}
|
|
||||||
{{ if (eq $taxonomyname $author) }}
|
|
||||||
{{ $taxonomyLink = delimit (slice $baseURL "authors/" $author "/") "" }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ $finalLink := $taxonomyLink }}
|
{{ $finalLink := $taxonomyLink }}
|
||||||
{{ $currentLang := site.Language.Name }}
|
{{ $currentLang := site.Language.Name }}
|
||||||
{{ if eq site.LanguagePrefix "" }}
|
{{ if eq site.LanguagePrefix "" }}
|
||||||
{{ $finalLink = printf "%sauthors/%s/" $baseURL $author }}
|
{{ $finalLink = printf "%sauthors/%s/" $baseURL $author }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $finalLink = printf "%s%s/authors/%s/" $baseURL $currentLang $author }}
|
{{ $finalLink = printf "%s%s/authors/%s/" $baseURL $currentLang $author }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ partial "author-extra.html" (dict "context" . "data" $authorData "link" $finalLink) }}
|
{{ partial "author-extra.html" (dict "context" . "data" $authorData "link" $finalLink) }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{ end }}
|
||||||
|
{{ else }}
|
||||||
|
{{ if .Params.showAuthor | default (site.Params.article.showAuthor | default true) }}
|
||||||
|
{{ $showAuthor = 1 }}
|
||||||
|
{{ partial "author.html" . }}
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if or $taxonomyLink $showAuthor }}
|
{{ if or $taxonomyLink $showAuthor }}
|
||||||
|
|||||||
Reference in new issue
Block a user