showcase
- v0.2.4
- 37 commits
- 1 branch
- 6 tags
- updated
- CI 2/2
profile.html
3.7 KB · 64 lines
1{{define "content" -}}2<header class="page-header">3 <h1><span aria-hidden="true">/</span>projects</h1>4 <p class="meta">Things I've built or projects in development</p>5</header>67<section class="box heat">8 <h2 class="box-head">{{template "icon" "pulse"}}{{.Total}} commits in the last year9 <span class="activity-stats">10 <span>active in <b>{{.ActiveWeeks}}</b> of the last 52 weeks</span>11 {{- if .Streak}}<span class="streak">{{template "icon" "fire"}}<span><b>{{.Streak}}</b>-week streak</span></span>{{end}}12 </span>13 </h2>14 <div class="heat-body">15 <div class="heat-year">{{.Bars}}{{.Heatmap}}</div>16 <div class="heat-half">{{.BarsHalf}}{{.HeatHalf}}</div>17 <p class="heat-legend" aria-hidden="true">less <i class="h0"></i><i class="h1"></i><i class="h2"></i><i class="h3"></i><i class="h4"></i> more</p>18 </div>19</section>2021<div class="section-head">22 <h2 class="section-title">Repositories</h2>23 <a class="section-link" href="/repos/">All {{len .Repos}} repositories →</a>24</div>25<div class="repo-grid">26 {{- range .Featured}}27 {{template "repocard" .}}28 {{- end}}29</div>3031{{- with .Feed}}32<section class="feed" aria-labelledby="feed-title">33 <h2 class="section-title" id="feed-title">Activity</h2>34 <ol class="timeline">35 {{- range .}}36 <li class="tl-item tl--{{.Kind}}">37 <time class="tl-time" datetime="{{.When.Format "2006-01-02T15:04:05Z07:00"}}" title="{{.When.Format "2006-01-02 15:04 MST"}}">{{.Stamp}}</time>38 <span class="tl-who">39 {{- if and .Own $.Avatar}}<img class="avatar-sm" src="{{$.Avatar}}" alt="" width="24" height="24">{{else}}<span class="avatar-sm avatar-none">{{template "icon" "user"}}</span>{{end}}40 <span class="tl-badge">{{if eq .Kind "push"}}{{template "icon" "commit"}}{{else if eq .Kind "created"}}{{template "icon" "repo-new"}}{{else if eq .Kind "release"}}{{template "icon" "tag"}}{{else if eq .Kind "merged"}}{{template "icon" "merge"}}{{else if eq .Kind "issue"}}{{template "icon" "issue"}}{{else}}{{template "icon" "pull"}}{{end}}</span>41 </span>42 <div class="tl-main">43 <p class="tl-text"><b class="tl-actor">{{.Actor}}</b>44 {{- if eq .Kind "push"}} pushed {{.Count}} commit{{if ne .Count 1}}s{{end}} to <code class="tl-ref">{{.Branch}}</code> on <a class="tl-repo" href="/{{.Repo}}/">{{.Repo}}</a>45 {{- else if eq .Kind "created"}} created repository <a class="tl-repo" href="{{.Href}}">{{.Repo}}</a>46 {{- else if eq .Kind "release"}} published {{if .Pre}}pre-release{{else}}release{{end}} <a class="tl-ref" href="{{.Href}}">{{.Label}}</a> on <a class="tl-repo" href="/{{.Repo}}/">{{.Repo}}</a>47 {{- else if eq .Kind "issue"}} opened issue <a class="tl-title" href="{{.Href}}">{{or .Title .Label}}</a> on <a class="tl-repo" href="/{{.Repo}}/">{{.Repo}}</a>48 {{- else}} {{if eq .Kind "merged"}}merged{{else}}opened{{end}} pull <a class="tl-title" href="{{.Href}}">{{or .Title .Label}}</a> on <a class="tl-repo" href="/{{.Repo}}/">{{.Repo}}</a>49 {{- end}}</p>50 {{- if .Commits}}51 <ul class="tl-commits">52 {{- range .Commits}}53 <li>{{if .Href}}<a class="tl-sha" href="{{.Href}}">{{.Short}}</a>{{else}}<span class="tl-sha">{{.Short}}</span>{{end}}{{if .Verified}}<span class="tl-sig" title="Verified signature">{{template "icon" "lock"}}<span class="sr-only">Verified signature</span></span>{{end}}<span class="tl-subject">{{.Subject}}</span></li>54 {{- end}}55 <li class="tl-foot">{{with .More}}<span class="tl-chip">+{{.}} more</span>{{end}}<a class="tl-link" href="{{.Href}}">Commits →</a></li>56 </ul>57 {{- end}}58 </div>59 </li>60 {{- end}}61 </ol>62</section>63{{- end}}64{{- end}}