Welcome to mirror list, hosted at ThFree Co, Russian Federation.

author.html « block « partials « layouts - github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2dd7d108df1eb36f3bd3a2e3fb939c91fd703877 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{{ $authorName := . }}
{{ $author := "" }}
{{- $authorPath := print "data/authors/" $authorName ".json" -}}
{{ if (fileExists $authorPath) -}}
{{ $author = index site.Data.authors $authorName }}
{{ end }}
{{- if ne $authorName " " -}}
{{- with $author -}}
<div class="block-author">
    <div class="author-avatar"><a href="{{ with .link }} {{- . | safeHTML -}}{{ end }}" target="_blank"><img alt="{{ .about }}" src="{{ with .avatar }} {{- . | safeHTML -}}{{ end }}"></a></div>
    <div class="author-info">
        <div class="name"><a href="{{ with .link }} {{- . | safeHTML -}}{{ end }}" target="_blank">{{ .full_name }}</a></div>
        <div class="number-posts">{{ .about }}</span></div>
    </div>
</div>
{{- end -}}
{{- end -}}