diff options
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 18 |
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 -></a> {{ partial "foot.html" . }} |