summaryrefslogtreecommitdiffstats
path: root/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/components/author-github-data.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/components/author-github-data.html')
-rw-r--r--docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/components/author-github-data.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/components/author-github-data.html b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/components/author-github-data.html
new file mode 100644
index 000000000..25baea80a
--- /dev/null
+++ b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/components/author-github-data.html
@@ -0,0 +1,21 @@
+{{ $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 }}