44 lines
1.8 KiB
HTML
44 lines
1.8 KiB
HTML
{{ if not (eq .FirstSection.RelPermalink .RelPermalink) }}
|
|
<div class="item">
|
|
<a href="{{ .FirstSection.RelPermalink }}">{{ .FirstSection.Title }}</a>
|
|
</div>
|
|
{{ end }}
|
|
{{ if not .Date.IsZero }}
|
|
<div class="item">
|
|
<time class="dt-published" datetime="{{.Date.Format "2006-01-02T15:04:05Z07:00"}}"><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-02T15:04:05Z07:00"}}">{{ 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 }}" target="_blank">{{ .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 }}" target="_blank">{{ .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 }}" target="_blank">{{ (urls.Parse $link).Host }}</a>{{ $delimiter = "," }}{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
{{ if .IsTranslated }}
|
|
<div class="item">
|
|
{{ i18n "translations" }}: {{ $delimiter := "" }}{{ range .Translations }}{{ $delimiter }}<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>{{ $delimiter = ", " }}{{ end }}
|
|
</div>
|
|
{{ end }} |