From aa760d090c01d83b9425aaddaa403ab99ad59810 Mon Sep 17 00:00:00 2001 From: Joe Hutchinson Date: Mon, 21 Jan 2019 14:25:19 -0500 Subject: [PATCH] Remove bar after date in li if categories not set --- layouts/_default/li-next.html | 2 +- layouts/_default/li.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/li-next.html b/layouts/_default/li-next.html index eb8082d..19a8ecd 100644 --- a/layouts/_default/li-next.html +++ b/layouts/_default/li-next.html @@ -17,7 +17,7 @@

{{ if (isset .Params "description") }}{{ index .Params "description" }}{{ else }}{{ .Summary }}{{ end }}

Posted

-

{{ range .Params.categories }}#{{ . }} {{ end }}

+ {{ if (isset .Params "categories") }}

{{ range .Params.categories }}#{{ . }} {{ end }}

{{ end }}
\ No newline at end of file diff --git a/layouts/_default/li.html b/layouts/_default/li.html index 067ed3f..a5f70a4 100644 --- a/layouts/_default/li.html +++ b/layouts/_default/li.html @@ -16,7 +16,7 @@

{{ if (isset .Params "description") }}{{ index .Params "description" }}{{ else }}{{ .Summary }}{{ end }}

Posted

-

{{ range .Params.categories }}#{{ . }} {{ end }}

+ {{ if (isset .Params "categories") }}

{{ range .Params.categories }}#{{ . }} {{ end }}

{{ end }}
\ No newline at end of file