mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-08-31 00:57:33 -05:00
Originally I was using gap on a flexbox to separate the .sections container from the rest of the page list. But it's simpler if I just use block layout and a bottom margin, then I don't need an extra layer of div.
24 lines
513 B
HTML
24 lines
513 B
HTML
{{ define "main" }}
|
|
<h1>
|
|
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
|
{{ .Title | markdownify }}
|
|
{{ partial "rss-link.html" . }}
|
|
</h1>
|
|
|
|
{{ with .Content }}
|
|
{{ . }}
|
|
{{ end }}
|
|
|
|
{{ with .Sections }}
|
|
<div class="sections">
|
|
{{ range . }}
|
|
{{ .Render "summary" }}
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ partial "page-list.html" .Paginator.Pages }}
|
|
|
|
{{ partial "pagination.html" . }}
|
|
{{ end }}
|