Adjust post.html to take a dict
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
<ul class="post-list">
|
||||
{{ range $pages }}
|
||||
{{ partial "post.html" . }}
|
||||
{{ partial "post.html" (dict "page" .) }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<ul class="post-list">
|
||||
{{ range sort .Pages "Title" }}
|
||||
{{ partial "post.html" . }}
|
||||
{{ partial "post.html" (dict "page" .) }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user