Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yoshiharuyamashita/blackburn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortristor <tristor@gmail.com>2021-02-07 16:05:46 +0300
committertristor <tristor@gmail.com>2021-02-07 16:05:46 +0300
commit6e9c4ce0a8495ff3b75a882b95f80cd57c7c7431 (patch)
tree275aac8d34184ce31ae79a7a6cc14374a0286fcc
parent46e35df663e77f020861ad54eda6a977161b4eac (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.html15
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 }}