blob: 51501289c62599e8561725369c549c3e9915b076 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{{- $author := partial "function-authors-data.html" . -}}
{{- $description := or .Params.feed.description ($author.description | markdownify) -}}
{{- $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 -}}
{{- end -}}
<context-profile>
<context-menu>
<div>
<aside>
<figure>
<a title="{{ $name }}" href="{{ $href }}">
<picture>
{{ partial "author-picture" . }}
</picture>
</a>
</figure>
</aside>
<aside>
<h2>{{ $name }}</h2>
<p>@{{ $host }}</p>
</aside>
</div>
<p>{{ $description }}</p>
</context-menu>
</context-profile>
|