2022-11-06 04:34:34 +09:00
|
|
|
{{ template "header" .}}
|
|
|
|
|
|
|
|
<main>
|
2023-03-08 01:43:56 +09:00
|
|
|
{{ if .user }} {{ range $key, $value := .user}}
|
2023-04-02 23:06:52 +09:00
|
|
|
<div class="button-parent">
|
2023-03-28 22:22:38 +09:00
|
|
|
<a rel="noreferrer" href="https://github.com/{{.Login}}" class="button"
|
|
|
|
>View on GitHub</a
|
|
|
|
>
|
2023-03-08 01:43:56 +09:00
|
|
|
</div>
|
2023-04-02 23:06:52 +09:00
|
|
|
<div class="user-profile">
|
2023-03-08 01:43:56 +09:00
|
|
|
<img
|
|
|
|
src="{{ .AvatarUrl }}"
|
|
|
|
alt="{{.Login}}'s avatar"
|
|
|
|
class="avatar"
|
|
|
|
width="150"
|
|
|
|
height="150"
|
|
|
|
/>
|
|
|
|
{{ if .Name }}
|
|
|
|
<h1 class="user-profile-h1">{{.Name}}</h1>
|
|
|
|
{{ end }}
|
|
|
|
<h2>{{.Login}}</h2>
|
|
|
|
{{ if eq .Type "http://schema.org/Person" }}
|
|
|
|
<p><b>{{.Followers}}</b> followers - <b>{{.Following}}</b> following</p>
|
2022-11-06 04:34:34 +09:00
|
|
|
{{ else }}
|
2023-03-08 01:43:56 +09:00
|
|
|
<p><b>{{.Followers}}</b> followers</p>
|
|
|
|
{{ end }} {{ if .StatusEmoji}}
|
|
|
|
<p>{{.StatusEmoji}} {{.Status}}</p>
|
|
|
|
{{ end }} {{ if .Location }}
|
|
|
|
<p>🌍 {{.Location}}</p>
|
|
|
|
{{ end }} {{ if .Timezone }}
|
|
|
|
<p>🕑️ {{.Timezone}}</p>
|
|
|
|
{{ end }} {{ if .Link }}
|
|
|
|
<p>🌐 <a href="https://{{.Link}}" target="_blank">{{.Link}}</a></p>
|
|
|
|
{{ end }} {{ if .Email }}
|
|
|
|
<p>✉️ {{.Email}}</p>
|
|
|
|
{{ end }} {{ if .Social }}
|
2023-04-02 23:06:52 +09:00
|
|
|
<div class="social-links">
|
2023-03-08 01:43:56 +09:00
|
|
|
{{range .Social}}
|
|
|
|
<p>🔗 <a href="{{.}}" target="_blank">{{.}}</a></p>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }} {{ if .Organizations }}
|
|
|
|
<p>
|
|
|
|
Organizations: {{range .Organizations}}
|
|
|
|
<a href="/{{.}}" target="_blank">{{.}}</a>
|
|
|
|
{{ end }}
|
|
|
|
</p>
|
|
|
|
{{ end }} {{ if .OrgMembers }}
|
|
|
|
<p>
|
|
|
|
Members: {{range .OrgMembers}}
|
|
|
|
<a href="/{{.}}" target="_blank">@{{.}}</a>
|
|
|
|
{{ end }}
|
|
|
|
</p>
|
|
|
|
{{ end }} {{ if .Company }}
|
|
|
|
<p>🏢 {{.Company}}</p>
|
|
|
|
{{ end }} {{ if eq .Type "http://schema.org/Person" }}
|
|
|
|
<p>
|
|
|
|
✏️ {{ if .Name }} {{.Name}} {{ else }} {{.Login}} {{ end }} has made
|
|
|
|
{{.Contributions}}
|
|
|
|
</p>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ if .Bio }}
|
2023-04-02 23:06:52 +09:00
|
|
|
<div class="user-bio">
|
2023-03-08 01:43:56 +09:00
|
|
|
<h3>Bio</h3>
|
2023-04-02 23:06:52 +09:00
|
|
|
<p class="user-bio-text">{{.Bio}}</p>
|
2023-03-08 01:43:56 +09:00
|
|
|
</div>
|
|
|
|
{{ end }} {{ if .Readme }}
|
2023-04-02 23:06:52 +09:00
|
|
|
<div class="user-readme">
|
2023-04-27 21:11:06 +09:00
|
|
|
<h3><a href="{{.ReadmeUrl}}">README</a></h3>
|
2023-04-02 23:06:52 +09:00
|
|
|
<div class="user-readme-text">{{ unescape .Readme}}</div>
|
2023-03-08 01:43:56 +09:00
|
|
|
</div>
|
|
|
|
{{ end }} {{ if .MainRepos }}
|
2023-04-02 23:06:52 +09:00
|
|
|
<div class="user-readme">
|
2023-04-23 18:47:06 +09:00
|
|
|
<h3>{{.PinOrPopular}} repositories</h3>
|
2023-03-08 01:43:56 +09:00
|
|
|
{{range .MainRepos}}
|
2023-04-23 18:47:06 +09:00
|
|
|
<a class="user-repo-card" href="{{.Link}}">
|
|
|
|
<p class="user-repo-header">{{.Name}} ({{.Type}})</p>
|
|
|
|
{{if .ForkOf}} Forked from: <a href="/{{.ForkOf}}">{{.ForkOf}}</a>
|
|
|
|
{{else}} {{end}} {{if .Desc}} {{if eq .Type "Gist"}}
|
|
|
|
<style>
|
|
|
|
pre {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<pre> {{.Desc}} </pre>
|
|
|
|
{{else}}
|
2023-03-08 01:43:56 +09:00
|
|
|
<p class="">{{.Desc}}</p>
|
2023-04-23 18:47:06 +09:00
|
|
|
{{end}} {{else}} {{end}}
|
2023-03-08 01:58:55 +09:00
|
|
|
<p class="">
|
|
|
|
{{if .Stars}}⭐ {{.Stars}}{{else}}{{end}} {{if .Forks}} 🍴 {{.Forks}}
|
|
|
|
{{else}}{{end}} {{if .Lang}} 🗒️ {{.Lang}} {{else}}{{end}}
|
|
|
|
</p>
|
2023-04-02 23:06:52 +09:00
|
|
|
</a>
|
2022-11-06 04:34:34 +09:00
|
|
|
{{ end }}
|
2023-03-08 01:43:56 +09:00
|
|
|
</div>
|
|
|
|
{{ end }} {{ end }} {{ else }}
|
|
|
|
<h2>User not found</h2>
|
|
|
|
<p>That user doesn't exist.</p>
|
|
|
|
{{ end }}
|
2023-02-08 19:26:40 +09:00
|
|
|
</main>
|
2023-03-08 01:58:55 +09:00
|
|
|
{{ template "footer" .}}
|