Date

Displays a paragraph tag with a formating and localize date.

Example

Usage

{{ $args := (dict
    "date" "2006-01-02T15:04:05Z07:00"
    ) }}
{{ partial "commons/date" $args }}

HTML rendered

<p class="date"><time datetime="2006-01-02T15:04:05Z07:00">Monday, February 2, 2006</time></p>

Datas

date: ""
format: "" // default is ":date_full" https://gohugo.io/functions/time/format/
itemprop: false // or https://schema.org/Date