34 lines
1.4 KiB
HTML
34 lines
1.4 KiB
HTML
{{ if not .Date.IsZero }}
|
|
<div class="item">
|
|
<time class="dt-published" datetime="{{.Date.Format "2006-01-02 15:04"}}"><a class="u-url" href="{{ .RelPermalink }}">{{.Date.Format ( .Site.Params.dateformat | default "January 02, 2006")}}</a></time>
|
|
</div>
|
|
{{ end }}
|
|
{{ if ne .Date .Lastmod }}
|
|
<div class="item">
|
|
<time class="dt-updated" datetime="{{.Lastmod.Format "2006-01-02 15:04"}}">{{ T "meta_lastmod" }}: {{.Lastmod.Format ( .Site.Params.dateformat | default "January 02, 2006")}}</time>
|
|
</div>
|
|
{{ end }}
|
|
{{ with .Param "indieweb.reply" }}
|
|
{{ if .link }}
|
|
<div class="item">
|
|
{{ T "meta_reply_to" }}: <a class="u-in-reply-to" href="{{ .link }}">{{ .title | default .link }}</a>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ with .Param "indieweb.like" }}
|
|
{{ if .link }}
|
|
<div class="item">
|
|
{{ T "meta_like_of" }}: <a class="u-like-of" href="{{ .link }}">{{ .title | default .link }}</a>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ if .Param "shareLink" }}
|
|
<div class="item">
|
|
<a href="https://www.addtoany.com/share#url={{ .Permalink }}{{ with .Title }}&title={{ . }}{{ end }}" target="_blank" rel="nofollow noopener">{{ T "share" }}</a>
|
|
</div>
|
|
{{ end }}
|
|
{{ with .Param "syndicate" }}
|
|
<div class="item">
|
|
{{ T "also_on" }}:{{ $delimiter := "" }}{{ range $index, $link := . }}{{ $delimiter }} <a class="u-syndication" href="{{ $link }}">{{ (urls.Parse $link).Host }}</a>{{ $delimiter = "," }}{{ end }}
|
|
</div>
|
|
{{ end }} |