2024-11-24
This commit is contained in:
36
layouts/season.hbs
Normal file
36
layouts/season.hbs
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
layout: base-with-heading
|
||||
eleventyComputed:
|
||||
title: Season {{season}}
|
||||
---
|
||||
{{{content}}}
|
||||
{{#each (extractUniqueTags pagination "campaign")}}
|
||||
{{#with (findPageByTag this ../collections) as |page|}}
|
||||
<a href="{{ page.url }}" class="badge text-bg-dark fw-light rounded-1">{{ page.data.title }}</a>
|
||||
{{/with}}
|
||||
{{/each}}
|
||||
<div>
|
||||
<h3>Episodes</h3>
|
||||
{{#each episodes}}
|
||||
<div class="card my-2">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">
|
||||
<a href="{{{this.page.url}}}">
|
||||
{{#if data.title}}<strong>{{{data.episode}}}</strong>: {{{data.title}}}{{else}}<strong>{{data.episode}}</strong>{{/if}}
|
||||
</a>
|
||||
</h5>
|
||||
<span class="card-subtitle mb-2 text-body-secondary">{{{date this.date "MMM D, YYYY"}}}</h6>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
<div aria-label="Page navigation">
|
||||
<ul class="pagination">
|
||||
<li class="page-item {{#eq pagination.pageNumber 0}}disabled{{/eq}}"><a class="page-link" href="{{pagination.previous}}">Previous</a></li>
|
||||
{{#each pagination.hrefs}}
|
||||
|
||||
<li class="page-item {{#is @index ../pagination.pageNumber }}active{{/is}}" page-number="{{../pagination.pageNumber}}" index="{{@index}}"><a class="page-link " href="{{this}}">{{plus @index 1}}</a></li>
|
||||
{{/each}}
|
||||
<li class="page-item"><a class="page-link {{#eq pagination.pageNumber (minus (length pagination.hrefs) 1)}}disabled{{/eq}}" href="{{pagination.next}}">Next</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
Reference in New Issue
Block a user