Add special template for posts

This commit is contained in:
Danila Fedorin 2019-08-02 22:53:52 -07:00
parent 2f5169d1d9
commit 49d46a71e6
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
<div class="post-subscript">
<p>Posted on {{ .Date.Format "January 2, 2006" }}.</p>
<p>Tags:
{{ range .Params.tags }}
<a class="button" href="{{ $.Site.BaseURL }}/tags/{{ . | urlize }}">{{ . }}</a>
{{ end }}
</p>
</div>
<div class="post-content">
{{ .Content }}
</div>
{{ end }}