move news ticker into partial

This commit is contained in:
2022-01-13 13:22:22 +05:00
parent 798ef02616
commit 1e0dac036a
4 changed files with 56 additions and 52 deletions

View File

@ -1,40 +1,40 @@
{{ define "main" }}
<section class='entries'>
<div class="h-feed">
{{ range (.Paginator 13).Pages }}
<main>
<section class='entries'>
<div class="h-feed">
{{ 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 if in .Params.categories "shouts" }}
{{- partial "shout_card.html" . -}}
{{ if in .Params.categories "tv"}}
{{ else if in .Params.categories "page" }}
{{- partial "video_box.html" . -}}
{{- partial "blank.html" . -}}
{{ else if in .Params.categories "calendar" }}
{{ else }}
{{- partial "calendar_card.html" . -}}
{{- partial "card.html" . -}}
{{ else if in .Params.categories "network" }}
{{ end }}
{{- partial "network_card.html" . -}}
{{ end }}
</div>
{{ else if in .Params.categories "shouts" }}
<nav class="pagination">
{{ template "_internal/pagination.html" . }}
</nav>
{{- partial "shout_card.html" . -}}
{{ else if in .Params.categories "page" }}
{{- partial "blank.html" . -}}
{{ else }}
{{- partial "card.html" . -}}
{{ end }}
{{ end }}
</div>
<nav class="pagination">
{{ template "_internal/pagination.html" . }}
</nav>
</main>
{{ end }}