From e08c3b0137dd88994fe94b71680a15daa5be892a Mon Sep 17 00:00:00 2001
From: Erik Strand <erik.strand@cba.mit.edu>
Date: Sun, 16 Sep 2018 17:20:36 -0400
Subject: [PATCH] Order post excerpts on homepage
---
layouts/index.html | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 layouts/index.html
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..41bb156
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,18 @@
+{{ define "main" -}}
+<div class="posts">
+{{ range .Data.Pages.ByDate -}}
+<article class="post">
+ <h1 class="post-title">
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ </h1>
+ <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}" class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</time>
+ {{ .Summary }}
+ {{ if .Truncated }}
+ <div class="read-more-link">
+ <a href="{{ .RelPermalink }}">Read Moreā¦</a>
+ </div>
+ {{ end }}
+</article>
+{{- end }}
+</div>
+{{- end }}
--
GitLab