mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-20 18:41:53 +02:00
Fix author badge link
This commit is contained in:
parent
24dfec3d0f
commit
527d9fd8e5
1 changed files with 10 additions and 1 deletions
|
@ -49,7 +49,16 @@
|
||||||
{{ $taxonomyLink = delimit (slice $baseURL "authors/" $author "/") "" }}
|
{{ $taxonomyLink = delimit (slice $baseURL "authors/" $author "/") "" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ partial "author-extra.html" (dict "context" . "data" $authorData "link" $taxonomyLink) }}
|
|
||||||
|
{{ $finalLink := $taxonomyLink }}
|
||||||
|
{{ $currentLang := $.Site.Language.Lang }}
|
||||||
|
{{ if eq $.Site.LanguagePrefix "" }}
|
||||||
|
{{ $finalLink = printf "%sauthors/%s/" $baseURL $author }}
|
||||||
|
{{ else }}
|
||||||
|
{{ $finalLink = printf "%s%s/authors/%s/" $baseURL $currentLang $author }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ partial "author-extra.html" (dict "context" . "data" $authorData "link" $finalLink) }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue