jlelse
/
Indieroad
Archived
1
Fork 0
This repository has been archived on 2020-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
Indieroad/layouts/partials/post_meta.html

31 lines
1.1 KiB
HTML
Raw Normal View History

2019-11-19 08:31:47 +00:00
{{ if not .Params.nometa }}
{{ if not .Date.IsZero }}
2019-09-03 15:50:00 +00:00
<div class="item">
2019-12-05 21:33:43 +00:00
<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>
2019-09-05 15:18:19 +00:00
</div>
2019-11-19 08:31:47 +00:00
{{ end }}
{{ if ne .Date .Lastmod }}
2019-09-05 15:18:19 +00:00
<div class="item">
2019-12-05 21:33:43 +00:00
<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>
2019-09-03 15:50:00 +00:00
</div>
2019-11-19 08:31:47 +00:00
{{ end }}
2019-09-05 15:18:19 +00:00
{{ with .Param "indieweb.reply" }}
2019-11-19 08:31:47 +00:00
{{ if .link }}
2019-09-05 15:18:19 +00:00
<div class="item">
2019-11-19 08:31:47 +00:00
{{ T "meta_reply_to" }}: <a class="u-in-reply-to" href="{{ .link }}">{{ .title | default .link }}</a>
2019-09-05 15:18:19 +00:00
</div>
{{ end }}
2019-11-19 08:31:47 +00:00
{{ 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 }}
2019-12-04 21:43:07 +00:00
{{ if .Param "shareLink" }}
<div class="item">
2019-12-05 21:33:43 +00:00
<a href="https://www.addtoany.com/share#url={{ .Permalink }}{{ with .Title }}&title={{ . }}{{ end }}" target="_blank" rel="nofollow noopener">{{ T "share" }}</a>
2019-12-04 21:43:07 +00:00
</div>
{{ end }}
2019-11-19 08:31:47 +00:00
{{ end }}