aboutsummaryrefslogtreecommitdiff
path: root/layouts/projects
diff options
context:
space:
mode:
authorBryson Steck <brysonsteck@protonmail.com>2022-12-27 11:09:08 -0700
committerBryson Steck <brysonsteck@protonmail.com>2022-12-27 11:09:08 -0700
commit0b6c6241b7b53a5fa99e49e5b9723c5dd8e423c8 (patch)
treea224456ecfaee05ea89457ab0fdf60756e4d8c95 /layouts/projects
parentf8d04008580da2ea60dd916e0a73575e3f7d8e6a (diff)
downloadwebsite-0b6c6241b7b53a5fa99e49e5b9723c5dd8e423c8.tar
website-0b6c6241b7b53a5fa99e49e5b9723c5dd8e423c8.tar.gz
website-0b6c6241b7b53a5fa99e49e5b9723c5dd8e423c8.tar.bz2
create projects list and add more projects
Diffstat (limited to 'layouts/projects')
-rw-r--r--layouts/projects/list.html8
-rw-r--r--layouts/projects/single.html14
2 files changed, 20 insertions, 2 deletions
diff --git a/layouts/projects/list.html b/layouts/projects/list.html
index 19c6f48..96aef8b 100644
--- a/layouts/projects/list.html
+++ b/layouts/projects/list.html
@@ -2,10 +2,13 @@
<h2>My Projects</h2>
<hr>
<h4>Currently Maintained</h4>
-{{ range .Pages }}
+{{ range .Data.Pages.ByTitle }}
{{ if .Params.current }}
<div class="list p-3 rounded-3">
+<img src="/{{ .Params.icon }}">
<a href="{{.Permalink}}">{{.Title}}</a>
+<p>{{ .Params.description }}</p>
+<span>Started {{ .Date.Format "January 2, 2006" }}</span>
</div>
{{ end }}
{{ end }}
@@ -14,7 +17,10 @@
{{ range .Pages }}
{{ if not .Params.current }}
<div class="list p-3 rounded-3">
+<img src="/{{ .Params.icon }}">
<a href="{{.Permalink}}">{{.Title}}</a>
+<p>{{ .Params.description }}</p>
+<span>From {{ .Date.Format "January 2, 2006" }} to {{ .Params.enddate }}</span>
</div>
{{ end }}
{{ end }}
diff --git a/layouts/projects/single.html b/layouts/projects/single.html
index eea6972..fc01e34 100644
--- a/layouts/projects/single.html
+++ b/layouts/projects/single.html
@@ -1,6 +1,18 @@
{{ partial "head.html" . }}
+<img class="project-icon" src="/{{ .Params.icon }}">
<h1>{{$.Title}}</h1>
-<p>Posted by Bryson Steck on {{.Date.Format "January 2, 2006"}}</p>
+<h5>{{ .Description }}</h5>
+{{ if .Params.wip }}
+<span class="normal-span"><strong>WORK IN PROGRESS</strong><br></span>
+{{ end }}
+<span class="normal-span"><a href="{{ .Params.repo }}">Repository</a><br></span>
+{{ if .Params.current }}
+<span class="normal-span">Started on {{ .Date.Format "January 2, 2006" }}<br></span>
+{{ else }}
+<span class="normal-span">Started on {{ .Date.Format "January 2, 2006" }} and ended on {{ .Params.enddate }}<br></span>
+{{ end }}
+<span class="normal-span">Built with {{ .Params.languages }}<br></span>
+<span class="normal-span">Free and Open Source under the {{ .Params.license }}<br></span>
<hr>
<div class="project">
{{.Content}}