github.com/rabbouni145/gg@v0.47.1/docs/themes/gohugoioTheme/layouts/partials/components/author-github-data.html (about) 1 {{ $author := .context.Params.author }} 2 {{ if $author }} 3 <aside class="mw5 br3 mv3 nested-links"> 4 {{ $urlPre := "https://api.github.com" }} 5 {{ $user_json := getJSON $urlPre "/users/" $author }} 6 {{ if $user_json.name }} 7 <h3 class="f4 dib"> 8 {{ $user_json.name | htmlEscape }} 9 </h3> 10 11 {{ end }} 12 {{ if $user_json.bio }} 13 <p class="lh-copy measure center mt0 f6 black-60"> 14 {{ $user_json.bio | htmlEscape }} 15 </p> 16 {{ end }} 17 <a href="{{ $user_json.html_url }}" class="link dim v-mid dib"> 18 {{ partial "svg/github-squared.svg" (dict "fill" "gray" "width" "16" "height" "18") }} 19 </a> 20 </aside> 21 {{ end }}