{{ $dateFormat := "2006-01-02" }} {{ if .Site.Params.dateFormat }} {{ $dateFormat = .Site.Params.dateFormat }} {{ end }} {{ $machineDateFormat := "2006-01-02" }} <div class="post-info noselect"> {{ if .Params.date }} <div class="post-date dt-published"> <time datetime="{{ .Params.date.Format $machineDateFormat }}"> {{- .Params.date.Format $dateFormat -}} </time> {{ if ne .Params.date .Params.lastMod -}} [{{ i18n "lastMod" }} <time datetime="{{ .Params.lastMod.Format $machineDateFormat }}"> {{- .Params.lastMod.Format $dateFormat -}} </time>] {{- end }} </div> {{ end }} <a class="post-hidden-url u-url" href="{{ .Permalink }}">{{ .Permalink }}</a> <a href="{{ .Site.BaseURL }}" class="p-name p-author post-hidden-author h-card" rel="me">{{ .Params.author | default .Site.Params.author }}</a> <div class="post-taxonomies"> {{ if .Params.categories }} <ul class="post-categories"> {{ range $cat_name := .Params.categories }} {{ $cat := ($.Site.GetPage (printf "/categories/%s" $cat_name | urlize )) }} <li><a href="{{ $cat.Permalink }}">{{ $cat.Title | default $cat_name }}</a></li> {{ end }} </ul> {{ end }} {{ if .Params.tags }} <ul class="post-tags"> {{ range $tag_name := .Params.tags }} {{ $tag := ($.Site.GetPage (printf "/tags/%s" $tag_name | urlize )) }} <li><a href="{{ $tag.Permalink }}">#{{ $tag.Title | default $tag_name }}</a></li> {{ end }} </ul> {{ end }} {{ if .Params.authors }} <ul class="post-authors"> {{ range $author_name := .Params.authors }} {{ $author := ($.Site.GetPage (printf "/authors/%s" $author_name | urlize )) }} <li><a href="{{ $author.Permalink }}">@{{ $author_name }}</a></li> {{ end }} </ul> {{ end }} </div> </div>