index.html 481 B

1234567891011121314151617181920212223
  1. {{ partial "header.html" . }}
  2. <div id="app">
  3. <main id="main">
  4. {{ range where .Data.Pages "Type" "item" }}
  5. {{ partial "item.html" . }}
  6. {{ end }}
  7. </main>
  8. </div>
  9. {{ partial "sidebar.html" . }}
  10. <script charset="utf-8">
  11. var DataItems = [
  12. {{ range where .Data.Pages "Type" "item" }}
  13. {
  14. "href": "{{ .RelPermalink }}",
  15. "title": "{{ .Title }}",
  16. "text": "{{ .Content }}",
  17. "slug": "{{ .Slug }}"
  18. },
  19. {{ end }}
  20. ]
  21. </script>
  22. {{ partial "footer.html" . }}