43 lines
1.6 KiB
HTML
43 lines
1.6 KiB
HTML
<div class="item">
|
|
|
|
{{ if .Title }}
|
|
<h1>
|
|
{{ with .Params.icontag }}
|
|
<svg class='icon'><use xlink:href='#{{ . }}'></use></svg>
|
|
{{ end }}
|
|
{{ .Title }}
|
|
</h1>
|
|
{{ end }}
|
|
|
|
{{ .Date.Format (.Site.Params.dateFormat | default "2 January 2006") | $.Scratch.Set "subtitle" }}
|
|
{{ with .Description }} {{ $.Scratch.Set "subtitle" . }} {{ end }}
|
|
{{ if isset $.Params "subtitle" }}
|
|
<h2>{{ .Params.subtitle }}</h2>
|
|
<h3>
|
|
<span style="color: grey;">
|
|
<span title="Created Date">
|
|
<svg class='icon icon-text'><use xlink:href='#cal1'></use></svg>{{ $.Scratch.Get "subtitle" }}
|
|
</span> |
|
|
<span title="Last Modified Date">
|
|
<svg class='icon icon-text'><use xlink:href='#cal2'></use></svg>{{ .Lastmod.Format (.Site.Params.dateFormat | default "2 January 2006") }}
|
|
</span>
|
|
{{ if (not .Params.disableComments) }}
|
|
|
|
|
<span title="Comments">
|
|
<svg class='icon icon-text'><use xlink:href='#discuss'></use></svg><a href="{{ .Permalink }}#commento"></a>
|
|
</span>
|
|
{{ end }}
|
|
</span>
|
|
</h3>
|
|
{{ end }}
|
|
|
|
|
|
{{ if isset $.Params "tags" }}
|
|
<svg class='icon icon-text'><use xlink:href='#tag'></use></svg>
|
|
{{ end }}
|
|
{{ range .Params.tags }}
|
|
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}"><kbd class="item-tag">{{ . }}</kbd></a>
|
|
{{ end }}
|
|
|
|
</div>
|