From 22aa06a5c2b5ed69075d944abda323079a9e2ca4 Mon Sep 17 00:00:00 2001 From: fruworg Date: Mon, 31 Jul 2023 00:19:47 +0500 Subject: [PATCH] date fix --- layouts/_default/list.html | 2 +- layouts/_default/single.html | 2 +- layouts/_default/term.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index b482bbd..d8f5568 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -9,7 +9,7 @@ {{- range .Data.Pages -}} {{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
  • - {{.Title}} {{ dateFormat "01-02-2006 15:04:05" .Date }}{{ if .Draft }} DRAFT {{ end }} + {{.Title}} DRAFT {{ end }}
  • {{- end -}} {{- end -}} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e7036f8..5523fb6 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,7 +3,7 @@

    {{ .Title }}

    -
    Опубликовано {{ dateFormat "01-02-2006 15:04:05" .Date }}{{ if .Draft }} DRAFT {{ end }}
    +
    Опубликовано DRAFT {{ end }}
    {{ if isset .Params "tldr" }}
    diff --git a/layouts/_default/term.html b/layouts/_default/term.html index b482bbd..8d2ed75 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -9,7 +9,7 @@ {{- range .Data.Pages -}} {{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
  • - {{.Title}} {{ dateFormat "01-02-2006 15:04:05" .Date }}{{ if .Draft }} DRAFT {{ end }} + {{.Title}}
  • {{- end -}} {{- end -}}