jlelse
/
Indieroad
Archived
1
Fork 0

Fix meta and add reply context

This commit is contained in:
Jan-Lukas Else 2019-09-05 17:18:19 +02:00
parent b092e404c0
commit 4af29f53ba
3 changed files with 16 additions and 3 deletions

View File

@ -12,6 +12,9 @@
- id: meta_lastmod
translation: Zuletzt geändert
- id: meta_reply_to
translation: Antwort auf
# Post nav
- id: post_nav_prev
translation: Zurück

View File

@ -10,7 +10,10 @@
# Post meta
- id: meta_lastmod
translation: Last Modified
translation: Last modified
- id: meta_reply_to
translation: Reply to
# Post nav
- id: post_nav_prev

View File

@ -2,9 +2,16 @@
{{- 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>
{{- if ne .Date .Lastmod }}
<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 }}
{{- 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 -}}
{{ with .Param "indieweb.reply" }}
<div class="item">
{{ T "meta_reply_to" }}: <a class="u-in-reply-to" href="{{ .link }}">{{ .title }}</a>
</div>
{{ end }}
{{ end -}}