first alpha mithril version: display text, open nested crossref infinitly
This commit is contained in:
+20
-7
@@ -1,10 +1,23 @@
|
||||
{{ partial "header.html" . }}
|
||||
<main>
|
||||
{{ $paginator := .Paginate (where .Site.Pages "Type" "item") }}
|
||||
{{ range $paginator.Pages }}
|
||||
{{ partial "item.html" . }}
|
||||
{{ end }}
|
||||
{{ partial "pagination.html" . }}
|
||||
</main>
|
||||
<div id="app">
|
||||
<main id="main">
|
||||
{{ range where .Data.Pages "Type" "item" }}
|
||||
{{ partial "item.html" . }}
|
||||
{{ end }}
|
||||
</main>
|
||||
</div>
|
||||
{{ partial "sidebar.html" . }}
|
||||
<script charset="utf-8">
|
||||
var DataItems = [
|
||||
{{ range where .Data.Pages "Type" "item" }}
|
||||
{
|
||||
"href": "{{ .RelPermalink }}",
|
||||
"title": "{{ .Title }}",
|
||||
"text": "{{ .Content }}",
|
||||
"slug": "{{ .Slug }}"
|
||||
},
|
||||
{{ end }}
|
||||
]
|
||||
</script>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
Reference in New Issue
Block a user