31 lines
734 B
HTML
31 lines
734 B
HTML
{{ define "main" }}
|
|
<article class="post">
|
|
<header class="post-header">
|
|
<h1>{{ .Title }}</h1>
|
|
<p class="post-meta">
|
|
{{ .Date.Format "January 2, 2006" }} |
|
|
{{ if .Params.author }}By {{ .Params.author }}{{ end }}
|
|
</p>
|
|
</header>
|
|
|
|
<section class="post-content">
|
|
{{ .Content }}
|
|
</section>
|
|
|
|
{{ with .Params.tags }}
|
|
<section class="post-tags">
|
|
<h3>Tags:</h3>
|
|
<ul>
|
|
{{ range . }}
|
|
<li><a href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
</section>
|
|
{{ end }}
|
|
|
|
<footer class="post-footer">
|
|
<p><a href="/blog/">← Back to Blog</a></p>
|
|
</footer>
|
|
</article>
|
|
{{ end }}
|