brainbaking/layouts/partials/list-item.html

40 lines
1.3 KiB
HTML
Raw Normal View History

<div class="item">
2018-07-13 14:08:43 +02:00
{{ if .Title }}
<h3>
{{ with .Params.icontag }}
<i class='fa {{ . }}'></i>&nbsp;
{{ end }}
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h3>
2018-07-13 14:08:43 +02:00
{{ end }}
{{ .Date.Format (.Site.Params.dateFormat | default "2 January 2006") | $.Scratch.Set "subtitle" }}
{{ with .Description }} {{ $.Scratch.Set "subtitle" . }} {{ end }}
{{ if isset $.Params "subtitle" }}
<h4>{{ .Params.subtitle }}</h4>
<h5>
<span style="color: grey;">
2018-08-13 14:33:33 +02:00
<span title="Created Date">
<i class='fa fa-calendar'></i>&nbsp;{{ $.Scratch.Get "subtitle" }}
</span>&nbsp;|&nbsp;
<span title="Last Modified Date">
<i class='fa fa-calendar-check-o'></i>&nbsp;{{ .Lastmod.Format (.Site.Params.dateFormat | default "2 January 2006") }}
2020-04-12 21:11:20 +02:00
</span>&nbsp;|&nbsp;
<span title="Comments">
2020-04-12 21:18:00 +02:00
<i class="fa fa-comments-o"></i>&nbsp;<a href="{{ .Permalink }}#commento"></a>
2018-08-13 14:33:33 +02:00
</span>
</span>
</h5>
{{ end }}
{{ if isset $.Params "tags" }}
<i class='fa fa-tags' style='color: grey;'></i>&nbsp;
{{ end }}
{{ range .Params.tags }}
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}"><kbd class="item-tag">{{ . }}</kbd></a>
{{ end }}
</div>