mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -06:00
61 lines
1.5 KiB
HTML
61 lines
1.5 KiB
HTML
{{ define "main" }}
|
|
|
|
<h1>
|
|
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
|
{{ .Title | markdownify }}
|
|
<span class="rss-link">
|
|
{{ with .OutputFormats.Get "rss" }}
|
|
<a href="{{ .Permalink }}" target="_blank" rel="noopener">{{ partial "icon.html" "rss-feed" }}</a>
|
|
{{ end }}
|
|
</span>
|
|
</h1>
|
|
|
|
<div class="list-page-content">
|
|
{{ with .Sections }}
|
|
<div class="sections">
|
|
{{ range . }}
|
|
|
|
<a class="section-anchor" href="{{ .Permalink }}">
|
|
<div class="section">
|
|
<h2 class="section-title">
|
|
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
|
{{ .Title | markdownify }}
|
|
</h2>
|
|
|
|
<div class="section-description">
|
|
{{ if .Description }}
|
|
<p>
|
|
{{ .Description | markdownify }}
|
|
</p>
|
|
{{ else }}
|
|
{{ .Summary }}
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
</a>
|
|
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
<div class="page-list">
|
|
<ul>
|
|
{{ range .Paginator.Pages }}
|
|
<li>{{ .Render "summary" }}</li>
|
|
{{ else }}
|
|
<div>
|
|
{{ i18n "no_posts" }}
|
|
</div>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
{{ if gt .Paginator.TotalPages 1 }}
|
|
<div class="pagination">
|
|
{{ template "_internal/pagination.html" . }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ end }}
|