Browse Source

listings show card types

main
rra 3 years ago
parent
commit
d32d7b7b49
  1. 47
      layouts/_default/list.html

47
layouts/_default/list.html

@ -1,23 +1,32 @@
{{ define "main" }}
<section class="entries">
<section class='entries'>
<div class="h-feed">
{{ range .Pages }}
<div class='card'>
<article class="h-entry">
<header>
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2>
<time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time>
</header>
{{ if .Truncated }}
<div class="p-summary truncated">
{{ .Summary }}
<p><a href="{{ .RelPermalink }}">Read More…</a></p>
{{ else }}
<div class="p-summary">
{{ end }}
</div>
</article>
</div>
{{ range (.Paginator 13).Pages }}
{{ if in .Params.categories "tv"}}
{{- partial "video_box.html" . -}}
{{ else if in .Params.categories "calendar" }}
{{- partial "calendar_card.html" . -}}
{{ else if in .Params.categories "network" }}
{{- partial "network_card.html" . -}}
{{ else }}
{{- partial "card.html" . -}}
{{ end }}
{{ end }}
</section>
</div>
<nav class="pagination">
{{ template "_internal/pagination.html" . }}
</nav>
</main>
{{ end }}

Loading…
Cancel
Save