mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-04 22:14:02 -05:00
ec4e6f9df2
git-subtree-dir: docs git-subtree-split: f887bd7b4e3e7c7e76cd63951e5b0d37d8fe0ac7
21 lines
700 B
HTML
21 lines
700 B
HTML
{{ $author := .context.Params.author }}
|
|
{{ if $author }}
|
|
<aside class="mw5 br3 mv3 nested-links">
|
|
{{ $urlPre := "https://api.github.com" }}
|
|
{{ $user_json := getJSON $urlPre "/users/" $author }}
|
|
{{ if $user_json.name }}
|
|
<h3 class="f4 dib">
|
|
{{ $user_json.name | htmlEscape }}
|
|
</h3>
|
|
|
|
{{ end }}
|
|
{{ if $user_json.bio }}
|
|
<p class="lh-copy measure center mt0 f6 black-60">
|
|
{{ $user_json.bio | htmlEscape }}
|
|
</p>
|
|
{{ end }}
|
|
<a href="{{ $user_json.html_url }}" class="link dim v-mid dib">
|
|
{{ partial "svg/github-squared.svg" (dict "fill" "gray" "width" "16" "height" "18") }}
|
|
</a>
|
|
</aside>
|
|
{{ end }}
|