diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index fcfba4b..9c2517d 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -29,10 +29,12 @@ </h3> {{ end }} + {{- if not .Date.IsZero -}} <footer class="article-time"> {{ (resources.Get "icons/clock.svg").Content | safeHTML }} - <time data-timeago="true" datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'> + <time class="article-time--published"> {{- .Date.Format ( or .Site.Params.dateFormat "Jan 02, 2006" ) -}} </time> </footer> + {{- end -}} </div> \ No newline at end of file