mirror of
https://github.com/Vimux/Binario.git
synced 2024-12-04 20:08:34 +00:00
59bea459d8
* Add initial breadcrumb partial * Add aria-current=page property * Add separators via CSS to be comply with screen readers * Use ordered list to the set of links * Update README.md: add breadcrumb section
19 lines
No EOL
668 B
HTML
19 lines
No EOL
668 B
HTML
{{ define "main" }}
|
|
<main class="main">
|
|
{{ partial "breadcrumb.html" . }}
|
|
{{- if or .Title .Content }}
|
|
<div class="page block">
|
|
{{ with .Title }}<h1 class="page__title">{{ . }}</h1>{{ end }}
|
|
{{ with .Content }}<div class="page__content{{ if not $.Title }} page__content--notitle{{ end }}">{{ . }}</div>{{ end }}
|
|
</div>
|
|
{{- end }}
|
|
<div class="cards">
|
|
{{ range .Paginator.Pages }}
|
|
<div class="card{{ if and (ge ($.Param "columns") 1) (le ($.Param "columns") 3) }} card--{{ $.Param "columns" }}col{{ else }} card--2col{{ end }}">
|
|
{{ .Render "summary" }}
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
</main>
|
|
{{ partial "pagination.html" . }}
|
|
{{ end }} |