29 lines
1.0 KiB
HTML
29 lines
1.0 KiB
HTML
|
<details class="post-info no-print">
|
||
|
<summary>{{ i18n "post-infos" }}</summary>
|
||
|
<ul>
|
||
|
<li>{{ i18n "published" }}: {{ dateFormat "2006-01-02" (default .Date (.PublishDate)) }}</li>
|
||
|
{{ if (and (isset .Params "lastmod") (gt (dateFormat "2006-01-02" (.Lastmod)) (dateFormat "2006-01-02" (.PublishDate)))) }}
|
||
|
<li>{{ i18n "lastUpdate" }}: {{ .Lastmod.Format "2006-01-02" }}</li>
|
||
|
{{ end }}
|
||
|
{{ with .Params.categories }}
|
||
|
<li>{{ i18n "categories" }}:
|
||
|
<ul>
|
||
|
{{ range sort . }}
|
||
|
<li class="post-taxonomies"><a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a></li>
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
{{ with .Params.tags }}
|
||
|
<li>{{ i18n "tags" }}:
|
||
|
<ul>
|
||
|
{{ range sort . }}
|
||
|
<li class="post-taxonomies"> <a href="{{ "tags" | absURL }}/{{ . | urlize }}">{{ . }}</a> </li>
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
<li><a href="{{ .Permalink }}">{{ i18n "permalink" }}</a></li>
|
||
|
</ul>
|
||
|
</details>
|