{{ define "main" }}
{{ partial "header.html" (dict "context" . "IsDetailed" false) }}
<main class="blogpost">
<article>
<header>
<h1 class="post-title">{{ .Title }}</h1>
<span class="post-metadata">
<time class="post-time" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "2006-01-02" }}</time>
on <a href="/blog/">this blog</a>
{{ partial "feed-icon.html" }}
</span>
</header>
{{- if in .Params.tags "math" }}
<section>{{ replace .Content "$" "<span class=\"inline-math\">$</span>" | safeHTML }}</section>
{{- else }}
<section>{{ .Content }}</section>
{{- end }}
{{- if .Params.tags -}}
<footer class="post-metadata">
tags: [
<ul class="post-tags">
{{- range .Params.tags }}
<li>
<a href="/tags/{{ . }}">{{ . }}</a>
</li>
{{- end }}
</ul>
]
</footer>
{{- end -}}
</article>
</main>
{{ partial "openring.html" . }}
{{ partial "footer.html" . }}
{{ end }}