From 82418aa336ee36ebb8dc476eefa09d6208f88e40 Mon Sep 17 00:00:00 2001 From: sebousan Date: Tue, 18 Jun 2024 16:03:20 +0200 Subject: [PATCH] Simplify date --- layouts/partials/projects/date.html | 2 +- layouts/partials/projects/item/metas.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/projects/date.html b/layouts/partials/projects/date.html index 14f6e0b..b4bbbfa 100644 --- a/layouts/partials/projects/date.html +++ b/layouts/partials/projects/date.html @@ -1,3 +1,3 @@ {{ with .Date }} -

{{ partial "commons/time" (dict "date" . "format" "January 2006") }}

+ {{ partial "commons/date" (dict "date" . "format" "January 2006") }} {{ end }} \ No newline at end of file diff --git a/layouts/partials/projects/item/metas.html b/layouts/partials/projects/item/metas.html index b0a3465..b27fb32 100644 --- a/layouts/partials/projects/item/metas.html +++ b/layouts/partials/projects/item/metas.html @@ -1,6 +1,6 @@

- {{ partial "commons/time" (dict "date" .Date "format" ":date_long") }} + {{ partial "commons/time" (dict "date" .Date "format" "January 2006") }} {{ $projects_types := "projects/item/projects_types.html" }} {{ if templates.Exists ( printf "partials/%s" $projects_types ) }} {{ partial $projects_types . }}