Add post: 暗黑能天使
This commit is contained in:
7
layouts/partials/utils/get-bundles.html
Normal file
7
layouts/partials/utils/get-bundles.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{{ $currentPage := . }}
|
||||
{{ $bundles := slice $currentPage }}
|
||||
{{ if and (ne $currentPage.Kind "taxonomy") (or (ne $currentPage $currentPage.FirstSection) (eq $currentPage.Kind "term")) }}
|
||||
{{ $currentBundles := partial "utils/get-bundles" $currentPage.Parent }}
|
||||
{{ $bundles = $bundles | append $currentBundles }}
|
||||
{{ end }}
|
||||
{{ return $bundles }}
|
||||
Reference in New Issue
Block a user