mirror of
https://github.com/Speyll/anemone.git
synced 2024-11-14 02:06:45 +00:00
32 lines
684 B
HTML
32 lines
684 B
HTML
|
{{ define "main" }}
|
||
|
<h1>{{ .Title }}</h1>
|
||
|
{{ if .Params.showdate }}
|
||
|
<p>Published on: <time class="metaData">{{ dateFormat "02, Jan 2006" .Date }}</time></p>
|
||
|
{{ end }}
|
||
|
{{ if .Draft }} <span class="metaData">» draft</span> {{ end }}</p>
|
||
|
|
||
|
{{ if isset .Params "tldr" }}
|
||
|
<div class="tldr">
|
||
|
<strong class="metaData">tl;dr:</strong>
|
||
|
{{ .Params.tldr }}
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
|
||
|
<article>
|
||
|
{{ .Content }}
|
||
|
|
||
|
<div>
|
||
|
{{ if ne .Type "page" }}
|
||
|
{{ if gt .Params.tags 0 }}
|
||
|
|
||
|
<ul class="tagsData">
|
||
|
{{ range .Params.tags }}
|
||
|
<li><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">{{ . }}</a></li>
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
</article>
|
||
|
{{ end }}
|