From f2024bb2a4b1ec500c8471dde0779bbe0380d2de Mon Sep 17 00:00:00 2001 From: Vicky Date: Sun, 25 Mar 2018 17:34:08 -0400 Subject: [PATCH] Fix for default project image. --- layouts/blog/list.html | 2 +- layouts/blog/single.html | 2 +- layouts/partials/projects.html | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/layouts/blog/list.html b/layouts/blog/list.html index e1a31fc..c2d94d6 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -19,7 +19,7 @@ {{ if .Site.Params.showLatest }}

Latest Post

{{ range first 1 (where .Data.Pages.ByPublishDate.Reverse "Section" "blog") }} -
{{ .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }} +
{{ .Date.Format (.Site.Params.dateForm | default "Jan 02, 2006") }}

{{ .Title }}

{{ .Summary }} diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 914af05..15e1a9b 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -17,7 +17,7 @@

{{ .Title }}

- {{ .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }} | + {{ .Date.Format (.Site.Params.dateForm | default "Jan 02, 2006") }} | {{ if eq 1 .ReadingTime }}{{ .ReadingTime }} minute read{{ else }}{{ .ReadingTime }} minutes read{{ end }}
diff --git a/layouts/partials/projects.html b/layouts/partials/projects.html index 7a16ea7..6a6b050 100644 --- a/layouts/partials/projects.html +++ b/layouts/partials/projects.html @@ -5,15 +5,16 @@
{{ range sort .Pages }} {{ if eq .Section "projects" }} - {{ if eq (.Site.Params.projectColumns | default "3") "2" }} -
{{ else if eq (.Site.Params.projectColumns | default "3") "3" }} -
{{ end }} + {{ if eq .Site.Params.projectColumns "2" }} +
{{ else if eq .Site.Params.projectColumns "3" }} +
{{ else }} +
{{ end }}