20 lines
463 B
HTML
20 lines
463 B
HTML
{{ define "main" }}
|
|
<main>
|
|
<article>
|
|
<div class="title">
|
|
<h1 class="title">{{ .Title }}</h1>
|
|
<!--<div class="meta">Posted on {{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div>!-->
|
|
</div>
|
|
{{ if isset .Params "tldr" }}
|
|
<div class="tldr">
|
|
<strong>tl;dr:</strong>
|
|
{{ .Params.tldr }}
|
|
</div>{{ end }}
|
|
|
|
<section class="body">
|
|
{{ .Content }}
|
|
</section>
|
|
|
|
</article>
|
|
</main>
|
|
{{ end }}
|