redstrate.com/themes/red/layouts/_default/software.html

104 lines
4.7 KiB
HTML

{{ define "main" }}
<h2>{{ .Title }}</h2>
<hr>
{{ with resources.Get "pics/pic-software.webp" }}
<img alt="Software" class="gallery-img page-pic" width="{{ .Width }}" height="{{ .Height }}" src="{{ .RelPermalink }}">
{{ end }}
{{ .Content }}
{{ .Scratch.Set "header-type" "h3" }}
{{ .Scratch.Set "header-name" "Personal Projects" }}
{{ partial "fake-heading.html" . }}
<p>I really like to start projects in my free time (maybe too often). Here's an almost-comprehensive list of them, most of them are freely licensed as well!</p>
<div class="buttons">
{{ range .Data.Pages.ByDate.Reverse }}
<div class="blurb">
<p class="project-header">{{ .Title }}<span style="float:right;margin:0">{{ .Date.Format "2006" }}</span></p>
<p class="project-desc">{{ .Summary }}</p>
<ul class="nice-list">
<li>
<a href="{{ .RelPermalink }}">About</a>
</li>
{{ with .Param "source" }}
<li>
<a href="{{ . }}">Source Code</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}
</div>
{{ .Scratch.Set "header-type" "h3" }}
{{ .Scratch.Set "header-name" "Contributions" }}
{{ partial "fake-heading.html" . }}
<p>I also do plenty of open-source work, here's a list of some of the projects I contributed to! This is stuff I did in my free time and not part of employment or paid work.</p>
{{ $contrib := (index site.Data "contributions") }}
<div class="buttons">
{{ range $contrib.contributions }}
<div class="blurb">
<p class="project-header">{{ .name }}</p>
<p class="project-desc">{{ .description }}</p>
<ul class="nice-list">
{{ if eq .type "kde" }}
<li>
<a href="https://invent.kde.org/{{ .id }}/-/commits/master?author={{ $.Site.Params.invent_username }}">Commits</a>
</li>
<li>
<a href="https://invent.kde.org/{{ .id }}/merge_requests?scope=all&utf8=%E2%9C%93&state=all&author_username={{ $.Site.Params.invent_username }}">MRs</a>
</li>
{{ else }}
{{ if eq .type "github" }}
<li>
<a href="https://github.com/{{ .id }}/commits?author={{ $.Site.Params.github_username }}">Commits</a>
</li>
<li>
<a href="https://github.com/{{ .id }}/pulls?q=is%3Apr+author%3A{{ $.Site.Params.github_username }}+">PRs</a>
</li>
{{ else }}
{{ if eq .type "gitlab" }}
<li>
<a href="https://gitlab.com/{{ .id }}/-/commits/master?author={{ $.Site.Params.gitlab_username }}">Commits</a>
</li>
<li>
<a href="https://gitlab.com/{{ .id }}/merge_requests?scope=all&utf8=%E2%9C%93&state=all&author_username={{ $.Site.Params.gitlab_username }}">MRs</a>
</li>
{{ else }}
{{ if eq .type "xdg" }}
<li>
<a href="https://gitlab.freedesktop.org/{{ .id }}/-/commits/main?author={{ $.Site.Params.gitlab_username }}">Commits</a>
</li>
<li>
<a href="https://gitlab.freedesktop.org/{{ .id }}/merge_requests?scope=all&utf8=%E2%9C%93&state=all&author_username={{ $.Site.Params.gitlab_username }}">MRs</a>
</li>
{{ else }}
<li>
<a href="https://github.com/search?q=repo%3Agentoo%2Fgentoo+{{ $.Site.Params.github_username }}&type=commits">Commits</a>
</li>
<li>
<a href="https://github.com/gentoo/gentoo/pulls?q=is%3Apr+is%3Aclosed+author%3A{{ $.Site.Params.github_username }}">PRs</a>
</li>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</ul>
</div>
{{ end }}
</div>
{{ end }}