blog/themes/xsfx/layouts/partials/article.html

19 lines
564 B
HTML

<article>
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
{{ if (isset .Params "date") }}
<p>
<small>
{{ .Date.Format "02.01.2006 15:04" }}
{{ if .GitInfo }}/// <a href="https://github.com/xsteadfastx/blog/commit/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>{{ end }}
{{ if .Params.tags }}///{{ end }}
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
</small>
{{ end }}
</p>
<section class="content">
{{ .Content}}
</section>
</article>