diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/projects/list.html | 8 | ||||
-rw-r--r-- | layouts/projects/single.html | 14 |
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}} |