added layouts, some base content
This commit is contained in:
22
layouts/base.hbs
Normal file
22
layouts/base.hbs
Normal file
@@ -0,0 +1,22 @@
|
||||
<!doctype html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{#if title }}{{ title }}{{else}}{{ site.title }}{{/if}} - {{ site.name }}</title>
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
</head>
|
||||
<body class="{{{bodyClasses}}}">
|
||||
<header>
|
||||
<div>rpg.ascorrea.com</div>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/campaigns">Campaigns</a></li>
|
||||
<li><a href="/seasons">Seasons</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
{{{content}}}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
20
layouts/campaign.hbs
Normal file
20
layouts/campaign.hbs
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
layout: base
|
||||
---
|
||||
<h1>{{title}}</h1>
|
||||
{{{content}}}
|
||||
<p>{{season}}</p>
|
||||
<h1>Episodes</h1>
|
||||
<ul>
|
||||
{{#each collections.episode}}
|
||||
{{#ifIncludes ../seasons data.season }}
|
||||
<li>
|
||||
<h2>
|
||||
<a href="{{{this.page.url}}}">
|
||||
{{{formatSeasonEpisode data.season data.episode }}}: {{{ data.title }}}
|
||||
</a>
|
||||
</h2>
|
||||
</li>
|
||||
{{/ifIncludes}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
8
layouts/episode.hbs
Normal file
8
layouts/episode.hbs
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
layout: base
|
||||
bodyClasses: "season-{{{season}}}"
|
||||
eleventyComputed:
|
||||
bodyClasses: "episode season-{{season}}"
|
||||
---
|
||||
|
||||
{{{content}}}
|
||||
7
layouts/index.hbs
Normal file
7
layouts/index.hbs
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
layout: base
|
||||
---
|
||||
|
||||
<section>
|
||||
{{{content}}}
|
||||
</section>
|
||||
18
layouts/podcast-season.hbs
Normal file
18
layouts/podcast-season.hbs
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
layout: base
|
||||
---
|
||||
<h1>Season {{season}}</h1>
|
||||
{{{content}}}
|
||||
<ul>
|
||||
{{#each collections.episode}}
|
||||
{{#ifEquals data.season ../season}}
|
||||
<li>
|
||||
<h2>
|
||||
<a href="{{{this.page.url}}}">
|
||||
{{{formatSeasonEpisode data.season data.episode }}}: {{{ data.title }}}
|
||||
</a>
|
||||
</h2>
|
||||
</li>
|
||||
{{/ifEquals}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
28
layouts/podcast.hbs
Normal file
28
layouts/podcast.hbs
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
layout: base
|
||||
---
|
||||
{{{content}}}
|
||||
<h1>By Season</h1>
|
||||
<ul>
|
||||
{{#each seasons}}
|
||||
<li>
|
||||
<h2>
|
||||
<a href="{{{site.url}}}/episodes/{{{this}}}">
|
||||
{{{this}}}
|
||||
</a>
|
||||
</h2>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
<h1>By Campaign</h1>
|
||||
<ul>
|
||||
{{#each campaigns}}
|
||||
<li>
|
||||
<h2>
|
||||
<a href="/campaigns/{{{this}}}">
|
||||
{{{this}}}
|
||||
</a>
|
||||
</h2>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
Reference in New Issue
Block a user