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

185 lines
9.1 KiB
HTML
Raw Normal View History

2023-01-02 16:22:42 -05:00
{{ define "main" }}
<h2>{{ .Title }}</h2>
2023-02-23 17:39:20 -05:00
<hr>
2025-01-03 13:13:22 -05:00
{{ with resources.Get "pics/pic-software.jpg" }}
<picture>
{{ $avif_path := replace . ".jpg" ".avif "}}
{{ with resources.Get (strings.TrimSpace $avif_path) }}
<source srcset="{{ .RelPermalink }}" type="image/avif">
{{ end }}
<img alt="Software" class="gallery-img page-pic" width="{{ .Width }}" height="{{ .Height }}" src="{{ .RelPermalink }}">
2025-01-03 13:13:22 -05:00
</picture>
2023-04-16 13:10:06 -04:00
{{ end }}
2023-06-12 22:03:57 -04:00
{{ .Content }}
2025-01-03 17:02:37 -05:00
<div class="art-button-container" style="padding-right: 10px">
<a class="art-button" href="/software/tags">Tags</a>
</div>
2024-11-11 19:03:11 -05:00
{{ $contrib := (index site.Data "contributions") }}
{{ .Scratch.Set "header-type" "h3" }}
{{ .Scratch.Set "header-name" "Maintaining" }}
{{ partial "fake-heading.html" . }}
<p>I'm the "maintainer" for several projects that I did not originally create:</p>
<div class="buttons">
{{ range $contrib.maintaining }}
<div class="blurb">
<p class="project-header project-maintainer">{{ .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 }}">Merge Requests</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 }}+">Pull Requests</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 }}">Merge Requests</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 }}">Merge Requests</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 }}">Pull Requests</a>
</li>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</ul>
</div>
{{ end }}
</div>
{{ .Scratch.Set "header-type" "h3" }}
{{ .Scratch.Set "header-name" "Personal Projects" }}
{{ partial "fake-heading.html" . }}
2023-01-02 16:22:42 -05:00
2023-06-12 22:03:57 -04:00
<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>
2023-01-02 16:22:42 -05:00
<div class="buttons">
{{ range .Data.Pages.ByDate.Reverse }}
<div class="blurb">
2024-11-11 19:03:11 -05:00
{{ $since_year := (sub now.Year (.Date.Year)) }}
{{ $zero_to_one := math.Div (float $since_year) 6.0 }}
2024-11-11 19:03:11 -05:00
{{ $opacity := math.Sub 1.0 $zero_to_one }}
{{ $opacity = math.Max $opacity 0.0 }}
{{ $opacity_percentage := 0.0 }}
{{ if gt $opacity 0.49 }}
{{ $opacity_percentage = 100.0 }}
{{ end }}
2024-01-03 17:13:35 -05:00
<p class="project-header" style="background-color: rgba(85.0, 121.0, 153.0, {{ $opacity }}); color: color-mix(in srgb-linear, var(--text-color), white {{ $opacity_percentage }}%)">{{ .Title }}<span style="float:right;margin:0">{{ .Date.Format "2006" }}</span></p>
2023-01-02 16:22:42 -05:00
2023-06-12 22:03:57 -04:00
<p class="project-desc">{{ .Summary }}</p>
2023-01-02 16:22:42 -05:00
<ul class="nice-list">
2023-01-02 16:22:42 -05:00
{{ with .Param "source" }}
<li>
<a href="{{ . }}">Source Code</a>
</li>
{{ end }}
{{ if .Content }}
<li>
<a href="{{ .RelPermalink }}">About</a>
</li>
{{ end }}
2023-01-02 16:22:42 -05:00
</ul>
</div>
{{ end }}
</div>
{{ .Scratch.Set "header-type" "h3" }}
{{ .Scratch.Set "header-name" "Contributions" }}
{{ partial "fake-heading.html" . }}
2023-01-02 16:22:42 -05:00
<p>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 my employment. Of course, the exception to this rule is grants to work on open source projects.</p>
2023-01-02 16:22:42 -05:00
<div class="buttons">
{{ range $contrib.contributions }}
<div class="blurb">
2024-11-11 19:03:11 -05:00
<p class="project-header project-contribution">{{ .name }}</p>
2023-01-02 16:22:42 -05:00
2023-06-12 22:03:57 -04:00
<p class="project-desc">{{ .description }}</p>
2023-01-02 16:22:42 -05:00
<ul class="nice-list">
2023-01-02 16:22:42 -05:00
{{ if eq .type "kde" }}
<li>
<a href="https://invent.kde.org/{{ .id }}/-/commits/master?author={{ $.Site.Params.invent_username }}">Commits</a>
</li>
<li>
2024-09-29 21:07:09 -04:00
<a href="https://invent.kde.org/{{ .id }}/merge_requests?scope=all&utf8=%E2%9C%93&state=all&author_username={{ $.Site.Params.invent_username }}">Merge Requests</a>
</li>
2023-01-02 16:22:42 -05:00
{{ else }}
{{ if eq .type "github" }}
<li>
<a href="https://github.com/{{ .id }}/commits?author={{ $.Site.Params.github_username }}">Commits</a>
</li>
<li>
2024-09-29 21:07:09 -04:00
<a href="https://github.com/{{ .id }}/pulls?q=is%3Apr+author%3A{{ $.Site.Params.github_username }}+">Pull Requests</a>
</li>
2023-02-09 12:47:04 -05:00
{{ else }}
{{ if eq .type "gitlab" }}
<li>
<a href="https://gitlab.com/{{ .id }}/-/commits/master?author={{ $.Site.Params.gitlab_username }}">Commits</a>
</li>
<li>
2024-09-29 21:07:09 -04:00
<a href="https://gitlab.com/{{ .id }}/merge_requests?scope=all&utf8=%E2%9C%93&state=all&author_username={{ $.Site.Params.gitlab_username }}">Merge Requests</a>
2023-02-09 12:47:04 -05:00
</li>
2023-06-12 22:03:57 -04:00
{{ else }}
{{ if eq .type "xdg" }}
<li>
<a href="https://gitlab.freedesktop.org/{{ .id }}/-/commits/main?author={{ $.Site.Params.gitlab_username }}">Commits</a>
</li>
<li>
2024-09-29 21:07:09 -04:00
<a href="https://gitlab.freedesktop.org/{{ .id }}/merge_requests?scope=all&utf8=%E2%9C%93&state=all&author_username={{ $.Site.Params.gitlab_username }}">Merge Requests</a>
</li>
{{ else }}
<li>
<a href="https://github.com/search?q=repo%3Agentoo%2Fgentoo+{{ $.Site.Params.github_username }}&type=commits">Commits</a>
</li>
<li>
2024-09-29 21:07:09 -04:00
<a href="https://github.com/gentoo/gentoo/pulls?q=is%3Apr+is%3Aclosed+author%3A{{ $.Site.Params.github_username }}">Pull Requests</a>
</li>
{{ end }}
2023-02-09 12:47:04 -05:00
{{ end }}
2023-01-02 16:22:42 -05:00
{{ end }}
{{ end }}
</ul>
</div>
{{ end }}
</div>
{{ end }}