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" }} {{ 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" }}
{{ else }}
<div class="p-summary"> {{- partial "network_card.html" . -}}
{{ end }}
</div> {{ else }}
</article>
</div> {{- partial "card.html" . -}}
{{ end }}
{{ end }} {{ end }}
</section> </div>
<nav class="pagination">
{{ template "_internal/pagination.html" . }}
</nav>
</main>
{{ end }} {{ end }}

Loading…
Cancel
Save