Convert list page into hugo templates

This commit is contained in:
hossainemruz 2020-04-18 02:19:46 +06:00
parent 607f15580c
commit 00465629d2
11 changed files with 98 additions and 19 deletions

View file

@ -0,0 +1,11 @@
{{ range . }}
{{ if .Sections }}
<li><a data-filter="{{ .Params.id }}">{{ title .Title }}</a>
<ul>
{{ partial "sections.html" .Sections }}
</ul>
</li>
{{ else }}
<li><a data-filter="{{ .Params.id }}">{{ title .Title }}</a></li>
{{ end }}
{{ end }}