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

12 lines
343 B
HTML
Raw Normal View History

2024-04-02 19:36:21 +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 -}}