Update templates so getting child pages is more sane
I think this is a layover from when I tried to do weird things
This commit is contained in:
parent
07a30c1bd5
commit
d95f1e1bf0
2 changed files with 3 additions and 7 deletions
|
@ -6,12 +6,8 @@
|
|||
<hr />
|
||||
{{ end }}
|
||||
{{ $unique_id := .File.UniqueID }}
|
||||
{{ range .Site.Pages.ByTitle }}
|
||||
{{ if .Parent }}
|
||||
{{ if eq .Parent.File.UniqueID $unique_id }}
|
||||
{{ partial "list_item.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ range .Pages.ByTitle }}
|
||||
{{ partial "list_item.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{{ if .Content }}
|
||||
<hr />
|
||||
{{ end }}
|
||||
{{ range .Data.Pages.GroupByDate "2006-01" }}
|
||||
{{ range .Pages.GroupByDate "2006-01" }}
|
||||
{{ $month := print .Key "-01" }}
|
||||
{{ if (index .Pages 0).Date.IsZero }}
|
||||
<hr class="my-5" />
|
||||
|
|
Loading…
Add table
Reference in a new issue