jlelse
/
Indieroad
Archived
1
Fork 0

Implement microformats like

This commit is contained in:
Jan-Lukas Else 2019-11-19 09:31:47 +01:00
parent 9f8f86dbc0
commit 06938559f8
3 changed files with 22 additions and 7 deletions

View File

@ -15,6 +15,9 @@
- id: meta_reply_to
translation: Antwort auf
- id: meta_like_of
translation: Like von
# Post nav
- id: post_nav_prev
translation: Zurück

View File

@ -15,6 +15,9 @@
- id: meta_reply_to
translation: Reply to
- id: meta_like_of
translation: Like of
# Post nav
- id: post_nav_prev
translation: Previous

View File

@ -1,17 +1,26 @@
{{- if not .Params.nometa }}
{{- if not .Date.IsZero }}
{{ if not .Params.nometa }}
{{ if not .Date.IsZero }}
<div class="item">
<time class="dt-published text" datetime="{{.Date.Format "2006-01-02 15:04"}}">{{.Date.Format ( .Site.Params.dateformat | default "January 02, 2006")}}</time>
</div>
{{- end }}
{{- if ne .Date .Lastmod }}
{{ end }}
{{ if ne .Date .Lastmod }}
<div class="item">
<time class="dt-updated text" datetime="{{.Lastmod.Format "2006-01-02 15:04"}}">{{ T "meta_lastmod" }}: {{.Lastmod.Format ( .Site.Params.dateformat | default "January 02, 2006")}}</time>
</div>
{{ end -}}
{{ end }}
{{ with .Param "indieweb.reply" }}
{{ if .link }}
<div class="item">
{{ T "meta_reply_to" }}: <a class="u-in-reply-to" href="{{ .link }}">{{ .title }}</a>
{{ T "meta_reply_to" }}: <a class="u-in-reply-to" href="{{ .link }}">{{ .title | default .link }}</a>
</div>
{{ end }}
{{ 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 }}
{{ end }}