1
Fork 0

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:
Jake Howard 2020-02-22 15:25:03 +00:00
parent 07a30c1bd5
commit d95f1e1bf0
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 3 additions and 7 deletions
layouts
_default
posts

View file

@ -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>

View file

@ -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" />