aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/context-profile.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/partials/context-profile.html')
-rw-r--r--themes/default/layouts/partials/context-profile.html17
1 files changed, 7 insertions, 10 deletions
diff --git a/themes/default/layouts/partials/context-profile.html b/themes/default/layouts/partials/context-profile.html
index 5b82cc9..5150128 100644
--- a/themes/default/layouts/partials/context-profile.html
+++ b/themes/default/layouts/partials/context-profile.html
@@ -1,18 +1,15 @@
-{{- $author := partial "function-authors-data.html" . -}}
+{{- $author := partial "function-authors-data.html" . -}}
{{- $description := or .Params.feed.description ($author.description | markdownify) -}}
-{{- $name := or .Params.feed.name $author.name -}}
-{{- $user := $author.user -}}
-
-{{- $host := or (urls.Parse .Site.BaseURL).Host "localhost" -}}
-{{- $href := print .Site.BaseURL "/" $author.user "/#" -}}
-
-{{- $title := print $author.user "@" $host -}}
+{{- $name := or .Params.feed.name $author.name -}}
+{{- $host := or (urls.Parse .Site.BaseURL).Host "localhost" -}}
+{{- $author := .Section -}}
+{{- $href := print ("" | absURL) "/" $author "/" -}}
+{{- $title := print $author "@" $host -}}
{{- with .Params.feed -}}
{{- $host = $.Params.feed.domain -}}
{{- $href = or $.Params.feed.home (print "http://" $.Params.feed.domain) -}}
{{- $title = $.Params.feed.domain -}}
- {{- $user = "" -}}
{{- end -}}
<context-profile>
@@ -29,7 +26,7 @@
</aside>
<aside>
<h2>{{ $name }}</h2>
- <p>{{ $user }}@{{ $host }}</p>
+ <p>@{{ $host }}</p>
</aside>
</div>
<p>{{ $description }}</p>