From 4923287bdee3fbe562a46300bc64dcc4de8e9cb4 Mon Sep 17 00:00:00 2001
From: Daniel Flanagan
Date: Tue, 14 Jul 2020 18:02:25 -0500
Subject: [PATCH] Better blog listing
---
layouts/blog/li.html | 8 +++++++-
layouts/index.html | 2 +-
makefile | 10 +++++-----
readme.md | 1 +
4 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/layouts/blog/li.html b/layouts/blog/li.html
index b3b8a64..9efb493 100644
--- a/layouts/blog/li.html
+++ b/layouts/blog/li.html
@@ -1 +1,7 @@
-{{ .Title }}
+
+ {{ dateFormat "Jan 2 2006" .Lastmod }}
+
+
+ {{ .Title }}
+
+
diff --git a/layouts/index.html b/layouts/index.html
index 75cc425..91db2fe 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -15,7 +15,7 @@
on GitHub.
- Latest Posts
+ Latest Posts
{{ range (where .Site.RegularPages "Section" "blog") }}
diff --git a/makefile b/makefile
index 5ac9417..caf42a5 100644
--- a/makefile
+++ b/makefile
@@ -1,8 +1,8 @@
.PHONY: all default build dev publish publish-prod
-build: ; hugo
+build: ; @hugo
public: build
-dev: ; hugo serve --buildDrafts
+dev: ; @hugo serve --buildDrafts
all: build
-clean: ; rm -r public
-publish: public ; netlify deploy -d public
-publish-prod: public ; netlify deploy -d public --prod
+clean: ; @rm -r public
+publish: public ; @netlify deploy -d public && echo "You can run \`make publish-prod\` when you're ready."
+publish-prod: public ; @netlify deploy -d public --prod
diff --git a/readme.md b/readme.md
index 9c645be..399ae8c 100644
--- a/readme.md
+++ b/readme.md
@@ -3,6 +3,7 @@
## Dependencies
+ Hugo
++ `netlify-cli` (for deployments)
## Build