🎨 Finish archives page coding.

This commit is contained in:
凡梦星尘
2022-06-07 18:16:40 +08:00
parent 517ddcdf84
commit 168fb20cbb
24 changed files with 184 additions and 26 deletions

View File

@@ -0,0 +1,13 @@
{{- if .Site.Params.postMeta.created }}
{{ $timeF := .Site.Params.timeFormat }}
{{ $createdTime := (.Date.Format $timeF) | default (.PublishDate.Format $timeF) }}
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">{{- print (T "PostPublishDate") (T "SymbolColon") -}}</span>
<time title="{{ print (T "PostPublishDate") (T "SymbolColon") }}{{ .PublishDate }}" itemprop="dateCreated datePublished" datetime="{{ .PublishDate }}">
{{- .PublishDate.Format .Site.Params.dateFormat -}}
</time>
</span>
{{- end }}