brainbaking/themes/brainbaking-minimal/layouts/partials/list-item.html

43 lines
1.6 KiB
HTML
Raw Normal View History

2020-05-27 20:35:46 +02:00
<div class="item">
2020-05-27 21:20:01 +02:00
{{ if .Title }}
<h1>
2020-05-27 21:20:01 +02:00
{{ with .Params.icontag }}
2020-05-29 17:39:33 +02:00
<svg class='icon'><use xlink:href='#{{ . }}'></use></svg>
2020-05-27 20:35:46 +02:00
{{ end }}
{{ .Title }}
</h1>
2020-05-27 20:35:46 +02:00
{{ end }}
2020-05-27 21:20:01 +02:00
{{ .Date.Format (.Site.Params.dateFormat | default "2 January 2006") | $.Scratch.Set "subtitle" }}
2020-05-27 20:35:46 +02:00
{{ with .Description }} {{ $.Scratch.Set "subtitle" . }} {{ end }}
2020-05-27 21:20:01 +02:00
{{ if isset $.Params "subtitle" }}
<h2>{{ .Params.subtitle }}</h2>
<h3>
2020-05-27 21:20:01 +02:00
<span style="color: grey;">
<span title="Created Date">
2020-05-29 17:39:33 +02:00
<svg class='icon icon-text'><use xlink:href='#cal1'></use></svg>{{ $.Scratch.Get "subtitle" }}
2020-05-27 21:20:01 +02:00
</span>&nbsp;|&nbsp;
<span title="Last Modified Date">
2020-05-29 17:39:33 +02:00
<svg class='icon icon-text'><use xlink:href='#cal2'></use></svg>{{ .Lastmod.Format (.Site.Params.dateFormat | default "2 January 2006") }}
2020-05-27 21:20:01 +02:00
</span>
{{ if (not .Params.disableComments) }}
&nbsp;|&nbsp;
<span title="Comments">
<svg class='icon icon-text'><use xlink:href='#discuss'></use></svg><a href="{{ .Permalink }}#commento"></a>
</span>
{{ end }}
2020-05-27 21:20:01 +02:00
</span>
</h3>
2020-05-27 21:20:01 +02:00
{{ end }}
2020-05-27 20:35:46 +02:00
2020-05-27 21:20:01 +02:00
{{ if isset $.Params "tags" }}
2020-05-29 17:39:33 +02:00
<svg class='icon icon-text'><use xlink:href='#tag'></use></svg>
2020-05-27 21:20:01 +02:00
{{ end }}
2020-05-27 20:35:46 +02:00
{{ range .Params.tags }}
2020-05-27 21:20:01 +02:00
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}"><kbd class="item-tag">{{ . }}</kbd></a>
2020-05-27 20:35:46 +02:00
{{ end }}
</div>