Fix meta and add reply context
This commit is contained in:
parent
b092e404c0
commit
4af29f53ba
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 -}}
|
Reference in New Issue