Skip to content

Instantly share code, notes, and snippets.

@cyantarek
Created June 14, 2018 08:10
Show Gist options
  • Save cyantarek/a9ecd31428b0fecd096d3c74b43fe638 to your computer and use it in GitHub Desktop.
Save cyantarek/a9ecd31428b0fecd096d3c74b43fe638 to your computer and use it in GitHub Desktop.
{{template "base" .}}
{{define "title"}} New Post {{end}}
{{ define "content"}}
{{range .posts}}
<div class="post_wrapper">
<h2 class="title">
<a href="/posts/{{.ID}}">{{.Title}}</a>
</h2>
<p class="date">
{{.CreatedAt.Format "Jan, 03, 2006"}}
</p>
</div>
{{end}}
{{end}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment