Omphaloskepsis-2/layouts/partials/utils/get_content_by_section.html

12 lines
343 B
HTML
Raw Normal View History

2024-02-04 01:40:15 +00:00
<!--
Given a top-level section title slug [blog|cv|portfolio], returns all
`Pages` within that top-level section.
@param sc The site content (`$`)
@param section_slug The slug of the section to use [blog|cv|portfolio]
@returns Pages|nil
-->
{{- where ( ( .sc.GetPage "cv" ).Sections ) "Title" .section_title -}}