Created
June 14, 2018 08:10
-
-
Save cyantarek/a9ecd31428b0fecd096d3c74b43fe638 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{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