Browse Source

listings show card types

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

43
layouts/_default/list.html

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

Loading…
Cancel
Save