Implement microformats like
This commit is contained in:
parent
9f8f86dbc0
commit
06938559f8
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 }}
|
Reference in New Issue
Block a user