aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
authorBryson Steck <brysonsteck@protonmail.com>2022-12-27 19:59:35 -0700
committerBryson Steck <brysonsteck@protonmail.com>2022-12-27 19:59:35 -0700
commit7323b01e42d573c12818f48e4b00ed8ff7736565 (patch)
tree0432e898678b1a8f6ac162f05f1898c6b02a8e79 /layouts/index.html
parent6ba510878f9f5e333e511e300d1bf20d0310d633 (diff)
downloadwebsite-7323b01e42d573c12818f48e4b00ed8ff7736565.tar
website-7323b01e42d573c12818f48e4b00ed8ff7736565.tar.gz
website-7323b01e42d573c12818f48e4b00ed8ff7736565.tar.bz2
added contact page, blog list, redid homepage
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html18
1 files changed, 15 insertions, 3 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 4559344..478f8e9 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,10 +1,22 @@
{{ partial "head.html" . }}
-{{ range (where (where .Site.RegularPages "Section" "blog") "Params.nohtml" "!=" "true") }}
-{{- if .OutputFormats.Get "html" }}
+<h3>My Newest Project</h3>
+<hr>
+{{ range first 1 (where (where .Site.RegularPages "Section" "projects") "Params.nohtml" "!=" "true") }}
<div class="list p-3 rounded-3">
+<img src="/{{ .Params.icon }}">
<a href="{{.Permalink}}">{{.Title}}</a>
-<span><br>{{.Date.Format "January 2, 2006"}}</span>
+<p>{{ .Params.description }}</p>
+<span>Started {{ .Date.Format "January 2, 2006" }}</span>
</div>
+<br>
{{ end }}
+<h3>Recent Blog Posts</h3>
+<hr>
+{{ range first 4 (where (where .Site.RegularPages "Section" "blog") "Params.nohtml" "!=" "true") }}
+<div class="list p-3 rounded-3">
+<a href="{{.Permalink}}">{{.Title}}</a>
+<span><br>{{.Date.Format "January 2, 2006"}}</span>
+</div>
{{ end }}
+<a href="/blog" style="float: right;">View all posts -&gt;</a>
{{ partial "foot.html" . }}