added item partial layout

This commit is contained in:
Bachir Soussi Chiadmi
2017-04-11 18:19:25 +02:00
parent 69dc0700fc
commit 5c75ae9df2
2 changed files with 12 additions and 3 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
{{ partial "header.html" . }}
<main>
{{ $paginator := .Paginate (where .Site.Pages "Type" "post") }}
{{ $paginator := .Paginate (where .Site.Pages "Type" "item") }}
{{ range $paginator.Pages }}
{{ partial "summary.html" . }}
{{ partial "item.html" . }}
{{ end }}
{{ partial "pagination.html" . }}
</main>
{{ partial "sidebar.html" . }}
{{ partial "footer.html" . }}
{{ partial "footer.html" . }}
+9
View File
@@ -0,0 +1,9 @@
<article>
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
<div>
{{ .Content }}
</div>
</article>