diff options
author | tristor <tristor@gmail.com> | 2021-02-07 16:05:46 +0300 |
---|---|---|
committer | tristor <tristor@gmail.com> | 2021-02-07 16:05:46 +0300 |
commit | 6e9c4ce0a8495ff3b75a882b95f80cd57c7c7431 (patch) | |
tree | 275aac8d34184ce31ae79a7a6cc14374a0286fcc | |
parent | 46e35df663e77f020861ad54eda6a977161b4eac (diff) |
Add the recommended default section template into layouts/_default to eliminate warning in Hugo 0.55 and later.
-rw-r--r-- | layouts/_default/section.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/_default/section.html b/layouts/_default/section.html new file mode 100644 index 0000000..0081c00 --- /dev/null +++ b/layouts/_default/section.html @@ -0,0 +1,15 @@ +{{ define "main" }} + <main> + {{ .Content }} + <ul class="contents"> + {{ range .Paginator.Pages }} + <li>{{.Title}} + <div> + {{ partial "summary.html" . }} + </div> + </li> + {{ end }} + </ul> + {{ partial "pagination.html" . }} + </main> +{{ end }} |