From 94dd746d6b7de78b31352feb75006d931a4488a9 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Tue, 3 Nov 2020 16:26:36 -0600 Subject: [PATCH] Fix date --- content/_index.md | 3 --- content/about/_index.md | 3 +++ layouts/generic/{list.html => single.html} | 0 layouts/partials/post-list.html | 2 +- layouts/partials/rel-date.html | 3 +++ 5 files changed, 7 insertions(+), 4 deletions(-) rename layouts/generic/{list.html => single.html} (100%) create mode 100644 layouts/partials/rel-date.html diff --git a/content/_index.md b/content/_index.md index d68db62..5a1d439 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,8 +1,5 @@ +++ layout = "home" - -[cascade] -type = "generic" +++ hello diff --git a/content/about/_index.md b/content/about/_index.md index f2d4c89..fac8a59 100644 --- a/content/about/_index.md +++ b/content/about/_index.md @@ -1,5 +1,8 @@ +++ title = "about" + +type = "generic" +layout = "single" +++ Hi there! I'm a software enthusiast who recently graduated with a Computer diff --git a/layouts/generic/list.html b/layouts/generic/single.html similarity index 100% rename from layouts/generic/list.html rename to layouts/generic/single.html diff --git a/layouts/partials/post-list.html b/layouts/partials/post-list.html index 5497d94..43c718b 100644 --- a/layouts/partials/post-list.html +++ b/layouts/partials/post-list.html @@ -11,7 +11,7 @@ Posted - on {{ .Date.Format "Mon Jan 2 2006" }} + on {{ partial "rel-date" .Date }} diff --git a/layouts/partials/rel-date.html b/layouts/partials/rel-date.html new file mode 100644 index 0000000..b9629e2 --- /dev/null +++ b/layouts/partials/rel-date.html @@ -0,0 +1,3 @@ + + {{ .Format "Mon Jun 02, 2006" }} +