Skip to content

Commit

Permalink
Simplify date
Browse files Browse the repository at this point in the history
  • Loading branch information
sebousan committed Jun 18, 2024
1 parent 0f37fca commit 82418aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/projects/date.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{{ with .Date }}
<p class="date">{{ partial "commons/time" (dict "date" . "format" "January 2006") }}</p>
{{ partial "commons/date" (dict "date" . "format" "January 2006") }}
{{ end }}
2 changes: 1 addition & 1 deletion layouts/partials/projects/item/metas.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="metas">
<p>
{{ 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 . }}
Expand Down

0 comments on commit 82418aa

Please sign in to comment.