Add section layout

This commit is contained in:
Will Faught
2023-03-04 15:31:36 -08:00
parent 0e25a00fe3
commit 33360afd6f
2 changed files with 19 additions and 0 deletions

View File

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

View File

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