mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
fix: correct links for the author pages
This commit is contained in:
@@ -46,7 +46,7 @@
|
|||||||
{{- if $authorData -}}
|
{{- if $authorData -}}
|
||||||
{{ range $taxonomyname, $taxonomy := $taxonomies }}
|
{{ range $taxonomyname, $taxonomy := $taxonomies }}
|
||||||
{{ if (eq $taxonomyname $author) }}
|
{{ if (eq $taxonomyname $author) }}
|
||||||
{{ $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) }}
|
{{ partial "author-extra.html" (dict "context" . "data" $authorData "link" $taxonomyLink) }}
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
{{- if $authorData -}}
|
{{- if $authorData -}}
|
||||||
{{ range $taxonomyname, $taxonomy := $taxonomies }}
|
{{ range $taxonomyname, $taxonomy := $taxonomies }}
|
||||||
{{ if (eq $taxonomyname $author) }}
|
{{ if (eq $taxonomyname $author) }}
|
||||||
{{ $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) }}
|
{{ partial "author-extra.html" (dict "context" . "data" $authorData "link" $taxonomyLink) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user