mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-08-06 16:01:35 -05:00
layouts: Rename list to section and single to page
This makes them more specific. For example, section.html can't accidentally be a fallback for taxonomy.html, and page.html can't for term.html. Fixes #88
This commit is contained in:
25
layouts/section.html
Normal file
25
layouts/section.html
Normal file
@@ -0,0 +1,25 @@
|
||||
{{ define "main" }}
|
||||
<h1>
|
||||
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||
{{ .Title | markdownify }}
|
||||
{{ partial "rss-link.html" . }}
|
||||
</h1>
|
||||
|
||||
{{ with .Content }}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
<div class="list-page-container">
|
||||
{{ with .Sections }}
|
||||
<div class="sections">
|
||||
{{ range . }}
|
||||
{{ .Render "summary" }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "page-list.html" .Paginator.Pages }}
|
||||
</div>
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user