Add section layout
This commit is contained in:
10
README.md
10
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
|
||||
|
9
layouts/_default/paige/section.html
Normal file
9
layouts/_default/paige/section.html
Normal 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 }}
|
Reference in New Issue
Block a user