Changing date format to YYYY-MM-dd for datetime attribute.

This commit is contained in:
Andreas Dreyer Hysing 2023-07-07 18:30:02 +02:00 committed by GitHub
parent bcf4127174
commit 878c8fc421
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View file

@ -6,7 +6,7 @@
<h2><a rel="remote-article" href="{{ .Params.externalurl }}">→ {{ .Title }}</a> <a href="{{ .Permalink }}"></a></h2>
{{ end }}
<div class="postmeta">Posted on <time datetime="{{ .Date }}" pubdate="">{{ .Date.Format "January 2, 2006" }}</time>
<div class="postmeta">Posted on <time datetime='{{ .Date.Format "2006-01-02" }}' pubdate="">{{ .Date.Format "January 2, 2006" }}</time>
{{ if (isset .Params "categories") }}
in
<span class="categories">