diff --git a/README.md b/README.md index 6b3d2688..9c5f77d1 100644 --- a/README.md +++ b/README.md @@ -344,6 +344,16 @@ layout: "paige/search" title: "Search" ``` +### Section + +The `paige/section` layout provides a section page. + +Example `content/_index.md`: + +```yaml +layout: "paige/section" +``` + ## Shortcodes ### Figure diff --git a/layouts/_default/paige/section.html b/layouts/_default/paige/section.html new file mode 100644 index 00000000..db44818f --- /dev/null +++ b/layouts/_default/paige/section.html @@ -0,0 +1,9 @@ +{{ define "main" }} +{{ $page := . }} + +{{ if $page.Param "paige.section_pages.full_pages" | not }} + {{ partial "paige/article.html" $page }} +{{ end }} + +{{ partial "paige/pages.html" $page }} +{{ end }}