hugo-blog/themes/eddie/layouts/taxonomy/list.html

22 lines
706 B
HTML
Raw Normal View History

2022-08-16 20:42:05 +00:00
{{ define "main" }}
<section class="section">
<div class="container">
<div class="row">
<div class="col-12">
{{ partial "breadcrumb.html" . }}
<h1 class="mb-4 border-bottom border-primary d-inline-block text-capitalize">{{ if index (split .Title "/") 2 }}{{index (split .Title "/") 2}}{{ else if index (split .Title "/") 1 }}{{index (split .Title "/") 1}}{{else}}{{index (split .Title "/") 0}}{{end}}</h1>
</div>
<div class="col-lg-8 mb-5 mb-lg-0">
<div class="row">
{{ range .Data.Pages }}
{{ .Render "post"}}
{{ end }}
</div>
</div>
{{ partial "sidebar.html" . }}
</div>
</div>
</section>
{{ end }}