30 lines
609 B
HTML
30 lines
609 B
HTML
{{ define "main" }}
|
|
<main>
|
|
<h1>{{ .Title }}</h1>
|
|
<div class="sm-1 mtb-1">
|
|
Posted at — {{ dateFormat "Jan 2, 2006" .Date }}
|
|
{{ if .Draft }}
|
|
<span class="tag ml-1">
|
|
DRAFT
|
|
</span>
|
|
{{ end }}
|
|
</div>
|
|
<p>{{ .Description }}</p>
|
|
<article class="md">
|
|
{{ .Content }}
|
|
</article>
|
|
</main>
|
|
{{ if or .Params.math .Site.Params.math }}
|
|
{{ partial "math.html" . }}
|
|
{{ end }}
|
|
|
|
{{ if and .Params.comment (eq .Site.Params.comment "disqus")}}
|
|
{{ partial "disqus.html" . }}
|
|
{{ end }}
|
|
|
|
{{ if and .Params.comment (eq .Site.Params.comment "ovo")}}
|
|
{{ partial "ovo.html" . }}
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|