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

84 lines
3 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>
2023-01-02 16:22:42 -05:00
{{ .Content }}
2023-04-16 13:10:06 -04:00
{{ with resources.Get "pics/pic-software.webp" }}
2023-04-17 15:42:54 -04:00
<img class="gallery-img page-pic" width="{{ .Width }}" height="{{ .Height }}" src="{{ .RelPermalink }}">
2023-04-16 13:10:06 -04:00
{{ end }}
2023-01-02 16:22:42 -05:00
<h3>Personal Projects</h3>
<p>These are projects I made for my own use, but they're all freely licensed!</p>
<div class="buttons">
{{ range .Data.Pages.ByDate.Reverse }}
<div class="blurb">
<b>{{ .Title }}</b>
<p>{{ .Summary }}</p>
<ul class="nice-list">
2023-01-02 16:22:42 -05:00
<li>
<a href="{{ .RelPermalink }}">About</a>
</li>
{{ with .Param "source" }}
<li>
<a href="{{ . }}">Source Code</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}
</div>
<h3>Contributions</h3>
<p>This a list of software projects I contributed code to.</p>
{{ $contrib := (index site.Data "contributions") }}
<div class="buttons">
{{ range $contrib.contributions }}
<div class="blurb">
<b>{{ .name }}</b>
<p>{{ .description }}</p>
<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>
<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>
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>
<a href="https://github.com/{{ .id }}/pulls?q=is%3Apr+author%3A{{ $.Site.Params.github_username }}+">PRs</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>
<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>
{{ end }}
2023-01-02 16:22:42 -05:00
{{ end }}
{{ end }}
</ul>
</div>
{{ end }}
</div>
{{ end }}