This commit is contained in:
fruworg 2023-07-31 00:19:47 +05:00
parent 295b27b7d3
commit 22aa06a5c2
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
{{- range .Data.Pages -}}
{{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
<li class="post">
<a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta">{{ dateFormat "01-02-2006 15:04:05" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span>
<a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta"><time datetime="{{ .Date.Format "01-02-2006 15:04:05"}}">{{ .Site.Data.Strings.publishedon}} {{.Date.Day}} {{ index $.Site.Data.months.months .Date.Month }} {{.Date.Year}}, {{ .Date.Format "15:04" }} UTC+6 {{ if .Draft }}</time> <span class="draft-label">DRAFT</span> {{ end }}</span>
</li>
{{- end -}}
{{- end -}}

View File

@ -3,7 +3,7 @@
<article>
<div class="title">
<h1 class="title">{{ .Title }}</h1>
<div class="meta">Опубликовано {{ dateFormat "01-02-2006 15:04:05" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div>
<div class="meta">Опубликовано <time datetime="{{ .Date.Format "01-02-2006 15:04:05"}}">{{ .Site.Data.Strings.publishedon}} {{.Date.Day}} {{ index $.Site.Data.months.months .Date.Month }} {{.Date.Year}}, {{ .Date.Format "15:04" }} UTC+6 {{ if .Draft }}</time> <span class="draft-label">DRAFT</span> {{ end }}</div>
</div>
{{ if isset .Params "tldr" }}
<div class="tldr">

View File

@ -9,7 +9,7 @@
{{- range .Data.Pages -}}
{{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
<li class="post">
<a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta">{{ dateFormat "01-02-2006 15:04:05" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span>
<a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta"><time datetime="{{ .Date.Format "01-02-2006 15:04:05"}}">{{ .Site.Data.Strings.publishedon}} {{.Date.Day}} {{ index $.Site.Data.months.months .Date.Month }} {{.Date.Year}}, {{ .Date.Format "15:04" }} UTC+6</date> {{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span>
</li>
{{- end -}}
{{- end -}}