First commit
This commit is contained in:
12
themes/alpha-church/layouts/404.html
Normal file
12
themes/alpha-church/layouts/404.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ "<!-- Main -->" | safeHTML }}
|
||||
<section id="main" class="container">
|
||||
<header>
|
||||
<h2>404 Not Found</h2>
|
||||
</header>
|
||||
<div class="box">
|
||||
Oops, something went wrong. Time to go <a href="/">home</a>.
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
12
themes/alpha-church/layouts/_default/baseof.html
Normal file
12
themes/alpha-church/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{{ partial "header" . .Section "list" }}
|
||||
{{ partialCached "nav" . .Section }}
|
||||
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ partialCached "footer" . }}
|
||||
{{ if .IsPage }}
|
||||
{{ partialCached "scripts" . .Section "single" }}
|
||||
{{ else }}
|
||||
{{ partialCached "scripts" . .Section "list" }}
|
||||
{{ end }}
|
||||
9
themes/alpha-church/layouts/_default/list.html
Normal file
9
themes/alpha-church/layouts/_default/list.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{{ define "main" }}
|
||||
{{ "<!-- Main -->" | safeHTML }}
|
||||
<section id="main" class="container">
|
||||
<header>
|
||||
<h2>{{ .Title | title }}</h2>
|
||||
</header>
|
||||
{{ partial "listbody" . }}
|
||||
</section>
|
||||
{{ end }}
|
||||
32
themes/alpha-church/layouts/_default/single.html
Normal file
32
themes/alpha-church/layouts/_default/single.html
Normal file
@@ -0,0 +1,32 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ "<!-- Main -->" | safeHTML }}
|
||||
<section id="main" class="container">
|
||||
<header>
|
||||
<h2>{{ if .Draft }}DRAFT: {{end}}{{ .Params.title }}</h2>
|
||||
{{ with .Params.subtitle }}<p>{{ . }}</p>{{ end }}
|
||||
</header>
|
||||
<div class="box">
|
||||
{{ with .Params.images }}
|
||||
<span class="image featured"><img src="{{ index . 0 | absURL }}" alt=""></span>
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
{{ if or .Params.tags .Params.date }}
|
||||
<hr />
|
||||
<div id="meta">
|
||||
{{ with .Params.tags }}
|
||||
<p>Tags:
|
||||
{{ range $index, $key:= . }}
|
||||
{{ if $index }}, {{ end }}
|
||||
{{ if gt (len $key) 0 }}
|
||||
<a href="/tags/{{$key | urlize }}/">#{{ $key }}</a>
|
||||
{{ end }} {{/* if gt len */}}
|
||||
{{ end }} {{/* range */}}
|
||||
</p>
|
||||
{{ end }} {{/* if tags */}}
|
||||
{{ with .Params.date }}<p class="meta">Published: {{ . | dateFormat "January 2, 2006"}}</p>{{ end }}
|
||||
</div>
|
||||
{{ end }} {{/* if meta */}}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
420
themes/alpha-church/layouts/elements.html
Normal file
420
themes/alpha-church/layouts/elements.html
Normal file
@@ -0,0 +1,420 @@
|
||||
<!--
|
||||
Alpha by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
-->
|
||||
{{ partialCached "header" . }}
|
||||
{{ partial "nav" . }}
|
||||
|
||||
<!-- Main -->
|
||||
<section id="main" class="container">
|
||||
<header>
|
||||
<h2>Elements</h2>
|
||||
<p>Just an assorted selection of elements.</p>
|
||||
</header>
|
||||
<div class="row">
|
||||
<div class="12u">
|
||||
|
||||
<!-- Text -->
|
||||
<section class="box">
|
||||
<h3>Text</h3>
|
||||
<p>This is <b>bold</b> and this is <strong>strong</strong>. This is <i>italic</i> and this is <em>emphasized</em>.
|
||||
This is <sup>superscript</sup> text and this is <sub>subscript</sub> text.
|
||||
This is <u>underlined</u> and this is code: <code>for (;;) { ... }</code>. Finally, <a href="#">this is a link</a>.</p>
|
||||
|
||||
<hr />
|
||||
|
||||
<header>
|
||||
<h3>Heading with a Subtitle</h3>
|
||||
<p>Lorem ipsum dolor sit amet nullam id egestas urna aliquam</p>
|
||||
</header>
|
||||
<p>Nunc lacinia ante nunc ac lobortis. Interdum adipiscing gravida odio porttitor sem non mi integer non faucibus ornare mi ut ante amet placerat aliquet. Volutpat eu sed ante lacinia sapien lorem accumsan varius montes viverra nibh in adipiscing blandit tempus accumsan.</p>
|
||||
<header>
|
||||
<h4>Heading with a Subtitle</h4>
|
||||
<p>Lorem ipsum dolor sit amet nullam id egestas urna aliquam</p>
|
||||
</header>
|
||||
<p>Nunc lacinia ante nunc ac lobortis. Interdum adipiscing gravida odio porttitor sem non mi integer non faucibus ornare mi ut ante amet placerat aliquet. Volutpat eu sed ante lacinia sapien lorem accumsan varius montes viverra nibh in adipiscing blandit tempus accumsan.</p>
|
||||
|
||||
<hr />
|
||||
|
||||
<h2>Heading Level 2</h2>
|
||||
<h3>Heading Level 3</h3>
|
||||
<h4>Heading Level 4</h4>
|
||||
<h5>Heading Level 5</h5>
|
||||
<h6>Heading Level 6</h6>
|
||||
|
||||
<hr />
|
||||
|
||||
<h4>Blockquote</h4>
|
||||
<blockquote>Fringilla nisl. Donec accumsan interdum nisi, quis tincidunt felis sagittis eget tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan faucibus. Vestibulum ante ipsum primis in faucibus lorem ipsum dolor sit amet nullam adipiscing eu felis.</blockquote>
|
||||
|
||||
<h4>Preformatted</h4>
|
||||
<pre>i = 0;
|
||||
|
||||
while (!deck.isInOrder()) {
|
||||
print 'Iteration ' + i;
|
||||
deck.shuffle();
|
||||
i++;
|
||||
}
|
||||
|
||||
print 'It took ' + i + ' iterations to sort the deck.';
|
||||
</pre>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="12u">
|
||||
|
||||
<!-- Lists -->
|
||||
<section class="box">
|
||||
<h3>Lists</h3>
|
||||
<div class="row">
|
||||
<div class="6u 12u(mobilep)">
|
||||
|
||||
<h4>Unordered</h4>
|
||||
<ul>
|
||||
<li>Dolor pulvinar etiam magna etiam.</li>
|
||||
<li>Sagittis adipiscing lorem eleifend.</li>
|
||||
<li>Felis enim feugiat dolore viverra.</li>
|
||||
</ul>
|
||||
|
||||
<h4>Alternate</h4>
|
||||
<ul class="alt">
|
||||
<li>Dolor pulvinar etiam magna etiam.</li>
|
||||
<li>Sagittis adipiscing lorem eleifend.</li>
|
||||
<li>Felis enim feugiat dolore viverra.</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<div class="6u 12u(mobilep)">
|
||||
|
||||
<h4>Ordered</h4>
|
||||
<ol>
|
||||
<li>Dolor pulvinar etiam magna etiam.</li>
|
||||
<li>Etiam vel felis at lorem sed viverra.</li>
|
||||
<li>Felis enim feugiat dolore viverra.</li>
|
||||
<li>Dolor pulvinar etiam magna etiam.</li>
|
||||
<li>Etiam vel felis at lorem sed viverra.</li>
|
||||
<li>Felis enim feugiat dolore viverra.</li>
|
||||
</ol>
|
||||
|
||||
<h4>Icons</h4>
|
||||
<ul class="icons">
|
||||
<li><a href="#" class="icon fa-twitter"><span class="label">Twitter</span></a></li>
|
||||
<li><a href="#" class="icon fa-facebook"><span class="label">Facebook</span></a></li>
|
||||
<li><a href="#" class="icon fa-instagram"><span class="label">Instagram</span></a></li>
|
||||
<li><a href="#" class="icon fa-github"><span class="label">Github</span></a></li>
|
||||
<li><a href="#" class="icon fa-dribbble"><span class="label">Dribbble</span></a></li>
|
||||
<li><a href="#" class="icon fa-tumblr"><span class="label">Tumblr</span></a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4>Actions</h4>
|
||||
<ul class="actions">
|
||||
<li><a href="#" class="button special">Default</a></li>
|
||||
<li><a href="#" class="button">Default</a></li>
|
||||
<li><a href="#" class="button alt">Default</a></li>
|
||||
</ul>
|
||||
<ul class="actions small">
|
||||
<li><a href="#" class="button special small">Small</a></li>
|
||||
<li><a href="#" class="button small">Small</a></li>
|
||||
<li><a href="#" class="button alt small">Small</a></li>
|
||||
</ul>
|
||||
<div class="row">
|
||||
<div class="3u 6u(narrower) 12u$(mobilep)">
|
||||
<ul class="actions vertical">
|
||||
<li><a href="#" class="button special">Default</a></li>
|
||||
<li><a href="#" class="button">Default</a></li>
|
||||
<li><a href="#" class="button alt">Default</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="3u 6u$(narrower) 12u$(mobilep)">
|
||||
<ul class="actions vertical small">
|
||||
<li><a href="#" class="button special small">Small</a></li>
|
||||
<li><a href="#" class="button small">Small</a></li>
|
||||
<li><a href="#" class="button alt small">Small</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="3u 6u(narrower) 12u$(mobilep)">
|
||||
<ul class="actions vertical">
|
||||
<li><a href="#" class="button special fit">Default</a></li>
|
||||
<li><a href="#" class="button fit">Default</a></li>
|
||||
<li><a href="#" class="button alt fit">Default</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="3u 6u$(narrower) 12u$(mobilep)">
|
||||
<ul class="actions vertical small">
|
||||
<li><a href="#" class="button special small fit">Small</a></li>
|
||||
<li><a href="#" class="button small fit">Small</a></li>
|
||||
<li><a href="#" class="button alt small fit">Small</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="12u">
|
||||
|
||||
<!-- Table -->
|
||||
<section class="box">
|
||||
<h3>Table</h3>
|
||||
|
||||
<h4>Default</h4>
|
||||
<div class="table-wrapper">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Price</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Something</td>
|
||||
<td>Ante turpis integer aliquet porttitor.</td>
|
||||
<td>29.99</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Nothing</td>
|
||||
<td>Vis ac commodo adipiscing arcu aliquet.</td>
|
||||
<td>19.99</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Something</td>
|
||||
<td> Morbi faucibus arcu accumsan lorem.</td>
|
||||
<td>29.99</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Nothing</td>
|
||||
<td>Vitae integer tempus condimentum.</td>
|
||||
<td>19.99</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Something</td>
|
||||
<td>Ante turpis integer aliquet porttitor.</td>
|
||||
<td>29.99</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2"></td>
|
||||
<td>100.00</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h4>Alternate</h4>
|
||||
<div class="table-wrapper">
|
||||
<table class="alt">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Price</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Something</td>
|
||||
<td>Ante turpis integer aliquet porttitor.</td>
|
||||
<td>29.99</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Nothing</td>
|
||||
<td>Vis ac commodo adipiscing arcu aliquet.</td>
|
||||
<td>19.99</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Something</td>
|
||||
<td> Morbi faucibus arcu accumsan lorem.</td>
|
||||
<td>29.99</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Nothing</td>
|
||||
<td>Vitae integer tempus condimentum.</td>
|
||||
<td>19.99</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Something</td>
|
||||
<td>Ante turpis integer aliquet porttitor.</td>
|
||||
<td>29.99</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2"></td>
|
||||
<td>100.00</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="12u">
|
||||
|
||||
<!-- Buttons -->
|
||||
<section class="box">
|
||||
<h3>Buttons</h3>
|
||||
<ul class="actions">
|
||||
<li><a href="#" class="button special">Special</a></li>
|
||||
<li><a href="#" class="button">Default</a></li>
|
||||
<li><a href="#" class="button alt">Alternate</a></li>
|
||||
</ul>
|
||||
<ul class="actions">
|
||||
<li><a href="#" class="button special big">Big</a></li>
|
||||
<li><a href="#" class="button">Default</a></li>
|
||||
<li><a href="#" class="button alt small">Small</a></li>
|
||||
</ul>
|
||||
<ul class="actions fit">
|
||||
<li><a href="#" class="button special fit">Fit</a></li>
|
||||
<li><a href="#" class="button fit">Fit</a></li>
|
||||
<li><a href="#" class="button alt fit">Fit</a></li>
|
||||
</ul>
|
||||
<ul class="actions fit small">
|
||||
<li><a href="#" class="button special fit small">Fit + Small</a></li>
|
||||
<li><a href="#" class="button fit small">Fit + Small</a></li>
|
||||
<li><a href="#" class="button alt fit small">Fit + Small</a></li>
|
||||
</ul>
|
||||
<ul class="actions">
|
||||
<li><a href="#" class="button special icon fa-search">Icon</a></li>
|
||||
<li><a href="#" class="button icon fa-download">Icon</a></li>
|
||||
<li><a href="#" class="button alt icon fa-check">Icon</a></li>
|
||||
</ul>
|
||||
<ul class="actions">
|
||||
<li><span class="button special disabled">Special</span></li>
|
||||
<li><span class="button disabled">Default</span></li>
|
||||
<li><span class="button alt disabled">Alternate</span></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="12u">
|
||||
|
||||
<!-- Form -->
|
||||
<section class="box">
|
||||
<h3>Form</h3>
|
||||
<form method="post" action="#">
|
||||
<div class="row uniform 50%">
|
||||
<div class="6u 12u(mobilep)">
|
||||
<input type="text" name="name" id="name" value="" placeholder="Name" />
|
||||
</div>
|
||||
<div class="6u 12u(mobilep)">
|
||||
<input type="email" name="email" id="email" value="" placeholder="Email" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row uniform 50%">
|
||||
<div class="12u">
|
||||
<div class="select-wrapper">
|
||||
<select name="category" id="category">
|
||||
<option value="">- Category -</option>
|
||||
<option value="1">Manufacturing</option>
|
||||
<option value="1">Shipping</option>
|
||||
<option value="1">Administration</option>
|
||||
<option value="1">Human Resources</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row uniform 50%">
|
||||
<div class="4u 12u(narrower)">
|
||||
<input type="radio" id="priority-low" name="priority" checked>
|
||||
<label for="priority-low">Low Priority</label>
|
||||
</div>
|
||||
<div class="4u 12u(narrower)">
|
||||
<input type="radio" id="priority-normal" name="priority">
|
||||
<label for="priority-normal">Normal Priority</label>
|
||||
</div>
|
||||
<div class="4u 12u(narrower)">
|
||||
<input type="radio" id="priority-high" name="priority">
|
||||
<label for="priority-high">High Priority</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row uniform 50%">
|
||||
<div class="6u 12u(narrower)">
|
||||
<input type="checkbox" id="copy" name="copy">
|
||||
<label for="copy">Email me a copy of this message</label>
|
||||
</div>
|
||||
<div class="6u 12u(narrower)">
|
||||
<input type="checkbox" id="human" name="human" checked>
|
||||
<label for="human">I am a human and not a robot</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row uniform 50%">
|
||||
<div class="12u">
|
||||
<textarea name="message" id="message" placeholder="Enter your message" rows="6"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row uniform">
|
||||
<div class="12u">
|
||||
<ul class="actions">
|
||||
<li><input type="submit" value="Send Message" /></li>
|
||||
<li><input type="reset" value="Reset" class="alt" /></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<hr />
|
||||
|
||||
<form method="post" action="#">
|
||||
<div class="row uniform 50%">
|
||||
<div class="9u 12u(mobilep)">
|
||||
<input type="text" name="query" id="query" value="" placeholder="Query" />
|
||||
</div>
|
||||
<div class="3u 12u(mobilep)">
|
||||
<input type="submit" value="Search" class="fit" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="12u">
|
||||
|
||||
<!-- Image -->
|
||||
<section class="box">
|
||||
<h3>Image</h3>
|
||||
<h4>Fit</h4>
|
||||
<span class="image fit"><img src="images/pic04.jpg" alt="" /></span>
|
||||
<div class="box alt">
|
||||
<div class="row no-collapse 50% uniform">
|
||||
<div class="4u"><span class="image fit"><img src="images/pic04.jpg" alt="" /></span></div>
|
||||
<div class="4u"><span class="image fit"><img src="images/pic04.jpg" alt="" /></span></div>
|
||||
<div class="4u"><span class="image fit"><img src="images/pic04.jpg" alt="" /></span></div>
|
||||
</div>
|
||||
<div class="row no-collapse 50% uniform">
|
||||
<div class="4u"><span class="image fit"><img src="images/pic04.jpg" alt="" /></span></div>
|
||||
<div class="4u"><span class="image fit"><img src="images/pic04.jpg" alt="" /></span></div>
|
||||
<div class="4u"><span class="image fit"><img src="images/pic04.jpg" alt="" /></span></div>
|
||||
</div>
|
||||
<div class="row no-collapse 50% uniform">
|
||||
<div class="4u"><span class="image fit"><img src="images/pic04.jpg" alt="" /></span></div>
|
||||
<div class="4u"><span class="image fit"><img src="images/pic04.jpg" alt="" /></span></div>
|
||||
<div class="4u"><span class="image fit"><img src="images/pic04.jpg" alt="" /></span></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4>Left & Right</h4>
|
||||
<p><span class="image left"><img src="images/pic05.jpg" alt="" /></span>Fringilla nisl. Donec accumsan interdum nisi, quis tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent. Donec accumsan interdum nisi, quis tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent.</p>
|
||||
<p><span class="image right"><img src="images/pic05.jpg" alt="" /></span>Fringilla nisl. Donec accumsan interdum nisi, quis tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent. Donec accumsan interdum nisi, quis tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent.</p>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ partialCached "footer" . }}
|
||||
{{ partialCached " scripts" .}}
|
||||
84
themes/alpha-church/layouts/index.html
Normal file
84
themes/alpha-church/layouts/index.html
Normal file
@@ -0,0 +1,84 @@
|
||||
<!--
|
||||
Alpha by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
-->
|
||||
|
||||
{{ partial "header" . }}
|
||||
{{ partial "nav" . }}
|
||||
{{ partial "banner" . }}
|
||||
|
||||
{{ "<!-- Main -->" | safeHTML }}
|
||||
<section id="main" class="container">
|
||||
|
||||
{{ if .Params.Services.title }}
|
||||
<section class="box special">
|
||||
<header class="major">
|
||||
<h2>{{ .Params.Services.title }}</h2><a name="services"></a>
|
||||
<p>{{ .Params.Services.text | markdownify }}</p>
|
||||
</header>
|
||||
{{ partial "map" . }}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Params.Feature_icons.enable }}
|
||||
{{ $tiles := .Params.Feature_icons.tile }}
|
||||
{{ $len := (len $tiles) }}
|
||||
<a name="feature-icons"></a>
|
||||
<section class="box special features">
|
||||
<div class="features-row">
|
||||
{{ range $index, $key := $tiles}}
|
||||
<section>
|
||||
{{ if $key.url }}<a href="{{ $key.url | absURL }}"><div>{{ end }}
|
||||
<span class="icon major {{ $key.icon_pack }} {{ $key.icon }} accent{{- $key.accent -}}"></span>
|
||||
<h3>{{ $key.title }}</h3>
|
||||
<p>{{ $key.text | markdownify }}</p>
|
||||
{{ if $key.url }}</div></a>{{ end }}
|
||||
</section>
|
||||
{{ if and (mod $index 2) (lt (add $index 1) $len) }}
|
||||
</div>
|
||||
<div class="features-row">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Params.Feature_images.enable }}
|
||||
{{ $tiles := .Params.Feature_images.tile }}
|
||||
{{ $len := (len $tiles) }}
|
||||
<a name="feature-images"></a>
|
||||
<div class="row">
|
||||
{{ range $index, $key := $tiles }}
|
||||
<div class="col-6 col-12-narrower">
|
||||
<section class="box special">
|
||||
<span class="image featured"><img src="{{ $key.image | absURL}}" alt="" /></span>
|
||||
<h3>{{ $key.title }}</h3>
|
||||
<p>{{ $key.text | markdownify }}</p>
|
||||
{{ if $key.button_text }}
|
||||
<ul class="actions special">
|
||||
<li><a href="{{ $key.url | absURL }}" class="button alt">{{ $key.button_text }}</a></li>
|
||||
</ul>
|
||||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
{{ if and (mod $index 2) (lt (add $index 1) $len) }}
|
||||
</div>
|
||||
<div class="row">
|
||||
{{ end }}
|
||||
{{ end }} {{/* end range $tiles*/}}
|
||||
</div>
|
||||
{{ end }} {{/* end if Feature_images*/}}
|
||||
|
||||
</section>
|
||||
|
||||
{{ "<!-- CTA -->" | safeHTML }}
|
||||
<section id="cta"><a name="call-to-action"></a>
|
||||
|
||||
<h2>{{ .Params.CTA.heading}}</h2>
|
||||
<p>{{ .Params.CTA.message}}</p>
|
||||
{{ partial "contact" .}}
|
||||
|
||||
</section>
|
||||
{{ partialCached "footer" . }}
|
||||
{{ partial "scripts" . }}
|
||||
9
themes/alpha-church/layouts/partials/banner.html
Normal file
9
themes/alpha-church/layouts/partials/banner.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<section id="banner">
|
||||
<h2>{{ .Site.Params.title }}</h2>
|
||||
<p>{{ .Site.Params.subtitle }}</p>
|
||||
<ul class="actions special">
|
||||
{{ range .Params.Banner.button }}
|
||||
<li><a href="{{ .url | relURL }}" class="button {{ .type }}">{{ .text }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
90
themes/alpha-church/layouts/partials/contact.html
Normal file
90
themes/alpha-church/layouts/partials/contact.html
Normal file
@@ -0,0 +1,90 @@
|
||||
{{ if .Site.Params.Contact.text }}
|
||||
<p>{{ .Site.Params.Contact.text }}
|
||||
{{ if .Site.Params.Contact.phone }}
|
||||
<br />
|
||||
<a href="tel:{{ .Site.Params.Contact.phone }}" target="_blank" aria-label="{{.Site.Params.Contact.phone }}">
|
||||
<i class="icon fas fa-phone-alt">
|
||||
<span class="label">
|
||||
{{ .Site.Params.Contact.phone }}
|
||||
</span>
|
||||
</i>
|
||||
|
||||
{{ .Site.Params.Contact.phone }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ if .Site.Params.Contact.mail }}
|
||||
<br />
|
||||
<a href="mailto:{{ .Site.Params.Contact.mail }}" target="_blank" aria-label="{{.Site.Params.Contact.mail }}">
|
||||
<i class="icon fas fa-envelope">
|
||||
<span class="label">
|
||||
{{ .Site.Params.Contact.mail }}
|
||||
</span>
|
||||
</i>
|
||||
|
||||
{{ .Site.Params.Contact.mail }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ end}}
|
||||
{{ if eq .Site.Params.Contact.service "netlify" }}
|
||||
<form name="contact" method="POST" action="{{ .Site.Params.Contact.confirm_page }}" netlify>
|
||||
<div class="row gtr-50 gtr-uniform">
|
||||
<div class="col-6 col-12-mobilep">
|
||||
<input type="text" name="name" aria-label="Your name" placeholder="Your name">
|
||||
</div>
|
||||
<div class="col-6 col-12-mobilep">
|
||||
<input type="email" name="email" aria-label="Email address" placeholder = "Email address">
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<textarea name="message" aria-label="Enter your message" placeholder="Enter your message" rows="6"></textarea>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<ul class="actions special">
|
||||
<li>
|
||||
<input type="submit" value="Send" />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{{ else if eq .Site.Params.Contact.service "formspree" }}
|
||||
<form method="POST" action="https://formspree.io/{{ .Site.Params.Contact.formspree_email }}">
|
||||
<div class="row gtr-50 gtr-uniform">
|
||||
<div class="col-6 col-12-mobilep">
|
||||
<input type="text" name="name" id="name" value="" aria-label="Name" placeholder="Name" />
|
||||
</div>
|
||||
<div class="col-6 col-12-mobilep">
|
||||
<input type="email" name="_replyto" id="email" value="" aria-label="Email" placeholder="Email" />
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<textarea name="message" id="message" aria-label="Enter your message" placeholder="Enter your message" rows="6"></textarea>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<ul class="actions special">
|
||||
<li><input type="submit" value="Send Message" /></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{{ else if eq .Site.Params.Contact.service "php" }}
|
||||
<form name="contact" method="POST" action="/contact_mail.php" netlify>
|
||||
<div class="row gtr-50 gtr-uniform">
|
||||
<div class="col-6 col-12-mobilep">
|
||||
<input type="text" name="name" aria-label="Your name" placeholder="Your name">
|
||||
</div>
|
||||
<div class="col-6 col-12-mobilep">
|
||||
<input type="email" name="email" aria-label="Email address" placeholder = "Email address">
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<textarea name="message" aria-label="Enter your message" placeholder="Enter your message" rows="6"></textarea>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<ul class="actions special">
|
||||
<li>
|
||||
<input type="submit" value="Send" name="send"/>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{{ end }}
|
||||
18
themes/alpha-church/layouts/partials/footer.html
Normal file
18
themes/alpha-church/layouts/partials/footer.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{{ "<!-- Footer -->" | safeHTML}}
|
||||
<footer id="footer">
|
||||
<ul class="icons">
|
||||
{{ range .Site.Params.links }}
|
||||
{{ $pack := or .icon_pack "fa" }}
|
||||
<li>
|
||||
<a href="{{ .link | safeURL }}" target="_blank" aria-label="{{ .service }}"><i class="icon {{ $pack }} {{ .icon }}"><span class="label">{{ .service }}</span></i></a>
|
||||
</li>
|
||||
{{ end }} {{/* range */}}
|
||||
</ul>
|
||||
<ul class="copyright">
|
||||
{{- range .Site.Params.Footer.copyright -}}
|
||||
<li>{{ . | markdownify }}</li>
|
||||
{{- end -}}
|
||||
</ul>
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
40
themes/alpha-church/layouts/partials/header.html
Normal file
40
themes/alpha-church/layouts/partials/header.html
Normal file
@@ -0,0 +1,40 @@
|
||||
<!DOCTYPE HTML>
|
||||
{{ with .Site.Params.languageCode }}<html lang="{{ . }}">{{ end }}
|
||||
<head>
|
||||
<title>{{ if .Title }}{{ .Title }} | {{ end }} {{ .Site.Params.title }}</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
{{ with .Site.Params.subtitle }}<meta name="description" content="{{ . }}">{{ end }}
|
||||
{{ with .Site.Params.name }}<meta name="author" content="{{ . }}">{{ end }}
|
||||
<meta name="keywords" content="
|
||||
{{- if .IsHome -}}
|
||||
{{- if .Site.Params.keywords -}}
|
||||
{{- range $i, $e := .Site.Params.keywords }}{{ if $i }}, {{ end }}{{ $e }}{{ end -}}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
{{ if .IsPage }}
|
||||
{{- if .Params.tags -}}
|
||||
{{- range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}
|
||||
{{- end -}}
|
||||
{{ end -}}" />
|
||||
{{- with .OutputFormats.Get "rss" -}}
|
||||
{{ printf `<link rel="%s" type="%s+%s" href="%s" title="%s" />` .Rel .MediaType.Type .MediaType.Suffix .Permalink $.Site.Title | safeHTML }}
|
||||
{{- end -}}
|
||||
{{ hugo.Generator }}
|
||||
{{ with .Site.Params.Podcast.itunes }}
|
||||
<meta name="apple-itunes-app" content="app-id={{ replaceRE "https\\:\\/\\/itunes\\.apple\\.com\\/[a-z]{2}\\/podcast\\/[a-z\\-]*\\/id(\\d{10}).*" "$1" . }}" />
|
||||
{{ end }}
|
||||
{{ template "_internal/opengraph.html" . }}
|
||||
{{ template "_internal/twitter_cards.html" . }}
|
||||
<link rel="stylesheet" href="{{ "fontawesome/css/all.min.css" | absURL }}" />
|
||||
{{- $css := .Site.Data.libs.css -}}
|
||||
{{ if .IsPage }}{{ printf "<link rel=\"stylesheet\" href=\"//cdn.plyr.io/%s/plyr.css\" integrity=\"%s\" crossorigin=\"anonymous\">" $css.plyr.version $css.plyr.integrity | safeHTML }}{{ end }}
|
||||
{{- $ieStyles := resources.Get "scss/ie8.scss" | toCSS | minify -}}
|
||||
{{- $ieJs := resources.Get "js/ie/html5shiv.js" | minify -}}
|
||||
{{ printf "<!--[if lte IE 8]><script src=\"%s\"></script><link rel=\"stylesheet\" href=\"%s\" /><![endif]-->" $ieJs.RelPermalink $ieStyles.RelPermalink | safeHTML }}
|
||||
{{ $style := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate "style.main.scss" . | toCSS | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" media="screen" crossorigin="anonymous" />
|
||||
{{- range .Site.Params.customCSS -}}
|
||||
<link rel="stylesheet" href="{{ . | absURL }}">
|
||||
{{- end -}}
|
||||
</head>
|
||||
46
themes/alpha-church/layouts/partials/listbody.html
Normal file
46
themes/alpha-church/layouts/partials/listbody.html
Normal file
@@ -0,0 +1,46 @@
|
||||
<div class="box">
|
||||
{{ $pages := .Paginator.Pages }}
|
||||
{{ $len := (len $pages) }}
|
||||
{{ range $index, $key := $pages }}
|
||||
{{ if .Params.images }}
|
||||
<div class="row no-collapse 50% uniform">
|
||||
<div class="col-6 col-12-mobilep">
|
||||
<a href="{{ .Permalink }}">{{ if .Draft }}DRAFT: {{end}}{{ .Title | markdownify }}</a>
|
||||
{{ with .Params.subtitle }} | {{ . | markdownify }} | {{ end }}
|
||||
{{ with .Params.passage }} | {{ . | markdownify }} | {{ end }}
|
||||
<time class="date-meta">{{ .Date.Format "Jan 2, 2006" }}</time>
|
||||
<br>
|
||||
{{ .Summary | plainify | safeHTML }}
|
||||
{{ if .Truncated }}
|
||||
<a class="button small alt" href="{{ .Permalink }}" >
|
||||
Read more<i class="fas fa-angle-double-right"></i>
|
||||
</a>
|
||||
{{ end }} {{/* if */}}
|
||||
</div>
|
||||
<div class="col-6 col-12-mobilep">
|
||||
<span class="image fit">
|
||||
<a href="{{ .Permalink }}">
|
||||
<img src="{{ index .Params.images 0 | absURL }}"></img>
|
||||
</a/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{{ else }}
|
||||
<div>
|
||||
<a href="{{ .Permalink }}">{{ if .Draft }}DRAFT: {{end}}{{ .Title | markdownify }}</a>
|
||||
<time class="date-meta">({{ .Date.Format "Jan 2, 2006" }})</time>
|
||||
<br>
|
||||
{{ .Summary | plainify | safeHTML }}
|
||||
{{ if .Truncated }}
|
||||
<a class="button small alt" href="{{ .Permalink }}" >
|
||||
Read more<i class="fas fa-angle-double-right"></i>
|
||||
</a>
|
||||
{{ end }} {{/* if */}}
|
||||
</div>
|
||||
{{ end }}{{/* if */}}
|
||||
{{ if lt (add $index 1) $len }}
|
||||
<hr />
|
||||
{{ end }}{{/* if */}}
|
||||
{{ end }} {{/* range */}}
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
</div>
|
||||
98
themes/alpha-church/layouts/partials/map.html
Normal file
98
themes/alpha-church/layouts/partials/map.html
Normal file
@@ -0,0 +1,98 @@
|
||||
{{ with .Site.Params.Map }}
|
||||
<div id="map" class="box"></div>
|
||||
{{ if eq .service "osm" }}
|
||||
{{ $js := $.Site.Data.libs.js }}
|
||||
{{ $css := $.Site.Data.libs.css }}
|
||||
{{ "<!-- OpenStreetMap -->" | safeHTML }}
|
||||
{{ printf "<link rel=\"stylesheet\" href=\"//unpkg.com/leaflet@%s/dist/leaflet.css\" integrity=\"%s\" crossorigin=\"anonymous\"/>" $css.leaflet.version $css.leaflet.integrity | safeHTML }}
|
||||
{{ printf "<script src=\"//unpkg.com/leaflet@%s/dist/leaflet.js\" integrity=\"%s\" crossorigin=\"anonymous\"></script>" $js.leaflet.version $js.leaflet.integrity | safeHTML }}
|
||||
<script>
|
||||
var loc = [{{- float .latitude -}}, {{- float .longitude -}}];
|
||||
var mymap = L.map("map").setView(loc, {{- int .zoom -}});
|
||||
L.tileLayer(
|
||||
"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
||||
{
|
||||
attribution:
|
||||
'Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
|
||||
maxZoom: {{- int .zoom -}}
|
||||
}
|
||||
).addTo(mymap);
|
||||
var marker = L.marker(loc).addTo(mymap);
|
||||
</script>
|
||||
{{ else if eq .service "google" }}
|
||||
{{ $opt := "" }}
|
||||
{{ if isset . "language" }}{{ $opt = print $opt "&language=" .language }}{{ end }}
|
||||
{{ if isset . "region" }}{{ $opt = print $opt "®ion=" .region }}{{ end }}
|
||||
{{ "<!-- Google Map -->" | safeHTML }}
|
||||
<script>
|
||||
var map;
|
||||
var centre = {lat: {{- float .latitude -}}, lng: {{- float .longitude -}}};
|
||||
function initMap() {
|
||||
map = new google.maps.Map(document.getElementById('map'), {
|
||||
center: centre,
|
||||
zoom: {{- float .zoom -}}
|
||||
});
|
||||
marker = new google.maps.Marker({position: centre, map: map});
|
||||
}
|
||||
</script>
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key={{- .api_key -}}{{- safeURL $opt -}}&callback=initMap"
|
||||
async defer></script>
|
||||
{{ else if eq .service "mapbox" }}
|
||||
{{ printf "<meta name=\"viewport\" content=\"initial-scale=1,maximum-scale=1,user-scalable=no\" />" | safeHTML }}
|
||||
{{ printf "<script src=\"https://api.mapbox.com/mapbox-gl-js/v1.8.1/mapbox-gl.js\"></script>" | safeHTML }}
|
||||
{{ printf "<link href=\"https://api.mapbox.com/mapbox-gl-js/v1.8.1/mapbox-gl.css\" rel=\"stylesheet\" />" | safeHTML }}
|
||||
<style>
|
||||
body { margin: 0; padding: 0; }
|
||||
#map { top: 0; bottom: 0; padding: 0; width: 100%; }
|
||||
</style>
|
||||
<script>
|
||||
var loc = [{{- float .longitude -}}, {{- float .latitude -}}];
|
||||
mapboxgl.accessToken = "{{- .api_key -}}";
|
||||
|
||||
var geojson = {
|
||||
type: 'FeatureCollection',
|
||||
features: [{
|
||||
type: 'Feature',
|
||||
geometry: {
|
||||
type: 'Point',
|
||||
coordinates: [{{- float .longitude -}}, {{- float .latitude -}}],
|
||||
},
|
||||
properties: {
|
||||
title: "{{- .marker_title -}}",
|
||||
description: "{{- .marker_address -}}"
|
||||
}
|
||||
}]
|
||||
};
|
||||
|
||||
var map = new mapboxgl.Map({
|
||||
container: 'map', // container id
|
||||
style: "{{- safeHTML .style_url -}}", // stylesheet location
|
||||
center: loc, // starting position [lng, lat]
|
||||
zoom: {{- int .zoom -}} // starting zoom
|
||||
});
|
||||
|
||||
// add markers to map
|
||||
geojson.features.forEach(function(marker) {
|
||||
|
||||
// create a HTML element for each feature
|
||||
var el = document.createElement('div');
|
||||
el.className = 'marker';
|
||||
|
||||
// make a marker for each feature and add to the map
|
||||
new mapboxgl.Marker(el)
|
||||
.setLngLat(marker.geometry.coordinates)
|
||||
.addTo(map);
|
||||
|
||||
if (marker.properties.title || marker.properties.description) {
|
||||
new mapboxgl.Marker(el)
|
||||
.setLngLat(marker.geometry.coordinates)
|
||||
.setPopup(new mapboxgl.Popup({ offset: 25 }) // add popups
|
||||
.setHTML('<h4>' + marker.properties.title + '</h4><div>' + marker.properties.description + '</div>'))
|
||||
.addTo(map);
|
||||
}
|
||||
});
|
||||
|
||||
map.addControl(new mapboxgl.NavigationControl());
|
||||
</script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
43
themes/alpha-church/layouts/partials/nav.html
Normal file
43
themes/alpha-church/layouts/partials/nav.html
Normal file
@@ -0,0 +1,43 @@
|
||||
<body {{ if .IsHome }} class="landing" {{ end }} >
|
||||
<div id="page-wrapper">
|
||||
<header id="header" {{ if .IsHome }} class="alt" {{ end }} >
|
||||
<h1><a href="/">{{ .Site.Params.title }}</a></h1>
|
||||
|
||||
{{ "<!-- Nav -->" | safeHTML }}
|
||||
<nav id="nav">
|
||||
<ul>
|
||||
{{ $currentPage := . }}
|
||||
{{ range .Site.Menus.main }}
|
||||
{{ if .HasChildren }}
|
||||
<li>
|
||||
<a href="{{ .URL | relURL }}"><i class="fas fa-angle-down"></i>
|
||||
{{ .Name }}
|
||||
</a>
|
||||
<ul>
|
||||
{{ range .Children }}
|
||||
{{ if .HasChildren }}
|
||||
<li>
|
||||
<a href="{{ .URL | relURL }}">{{ .Name }}</a>
|
||||
<ul>
|
||||
{{ range .Children }}
|
||||
<li><a href="{{ .URL |relURL }}">{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</li>
|
||||
{{ else }}
|
||||
<li>
|
||||
<a href="{{ .URL | relURL }}">
|
||||
{{ .Pre }} {{ .Name }}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
60
themes/alpha-church/layouts/partials/scripts.html
Normal file
60
themes/alpha-church/layouts/partials/scripts.html
Normal file
@@ -0,0 +1,60 @@
|
||||
{{ "<!-- Scripts -->" | safeHTML }}
|
||||
{{ $js := .Site.Data.libs.js }}
|
||||
{{ $jquery := resources.Get "js/jquery.min.js" | fingerprint }}
|
||||
{{ $dropotron := resources.Get "js/jquery.dropotron.min.js" | fingerprint }}
|
||||
{{ $scrollex := resources.Get "js/jquery.scrollex.min.js" | fingerprint }}
|
||||
{{ $browser := resources.Get "js/browser.min.js" | fingerprint }}
|
||||
{{ $breakpoints := resources.Get "js/breakpoints.min.js" | fingerprint }}
|
||||
{{ $util := resources.Get "js/util.js" | minify | fingerprint }}
|
||||
{{ $ie := resources.Get "js/ie/respond.min.js" | minify | fingerprint }}
|
||||
{{ $main := resources.Get "js/main.js" | minify | fingerprint }}
|
||||
{{ $plyr := resources.Get "/js/plyr.init.js" | minify | fingerprint }}
|
||||
{{ "<!-- Scripts-HTML5up -->" | safeHTML }}
|
||||
<script src="{{ $jquery.RelPermalink }}" integrity="{{ $jquery.Data.Integrity }}" crossorigin="anonymous"></script>
|
||||
<script src="{{ $dropotron.RelPermalink }}" integrity="{{ $dropotron.Data.Integrity }}" crossorigin="anonymous"></script>
|
||||
<script src="{{ $scrollex.RelPermalink }}" integrity="{{ $scrollex.Data.Integrity }}" crossorigin="anonymous"></script>
|
||||
<script src="{{ $browser.RelPermalink }}" integrity="{{ $browser.Data.Integrity }}" crossorigin="anonymous"></script>
|
||||
<script src="{{ $breakpoints.RelPermalink }}" integrity="{{ $breakpoints.Data.Integrity }}" crossorigin="anonymous"></script>
|
||||
<script src="{{ $util.RelPermalink }}" integrity="{{ $util.Data.Integrity }}" crossorigin="anonymous"></script>
|
||||
<script src="{{ $main.RelPermalink }}" integrity="{{ $main.Data.Integrity }}" crossorigin="anonymous"></script>
|
||||
{{ "<!-- Scripts ALPHA-CHURCH-->" | safeHTML }}
|
||||
{{ if isset .Site.Params "bible_popups" }}
|
||||
{{ $ver := "ESV"}}
|
||||
{{ with .Site.Params.bible_version }}{{ $ver = . }}{{ end }}
|
||||
{{ if (eq .Site.Params.bible_popups "faithlife") }}
|
||||
<script>
|
||||
var refTagger = {
|
||||
settings: {
|
||||
bibleVersion: "{{ $ver }}",
|
||||
roundCorners: true,
|
||||
socialSharing: []
|
||||
}
|
||||
};
|
||||
(function(d, t) {
|
||||
var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
|
||||
g.src = "//api.reftagger.com/v2/RefTagger.js";
|
||||
s.parentNode.insertBefore(g, s);
|
||||
}(document, "script"));
|
||||
</script>
|
||||
{{ else if (eq .Site.Params.bible_popups "blb") }}
|
||||
<script src="//www.blueletterbible.org/assets/scripts/blbToolTip/BLB_ScriptTagger-min.js"></script>
|
||||
<script>
|
||||
BLB.Tagger.Translation = '{{ $ver }}';
|
||||
BLB.Tagger.HyperLinks = 'none'; // 'all', 'none', 'hover'
|
||||
BLB.Tagger.HideTanslationAbbrev = false;
|
||||
BLB.Tagger.TargetNewWindow = true;
|
||||
BLB.Tagger.Style = 'par'; // 'line' or 'par'
|
||||
BLB.Tagger.NoSearchTagNames = ''; // HTML element list
|
||||
BLB.Tagger.NoSearchClassNames = 'noTag doNotTag'; // CSS class list
|
||||
</script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ `<!--[if lte IE 8]><script src=" {{ $ie.RelPermalink }} "></script><![endif]-->` | safeHTML}}
|
||||
{{ if .IsPage }}
|
||||
<script src="{{ $plyr.RelPermalink }}" integrity="{{ $plyr.Data.Integrity }}" crossorigin="anonymous"></script>
|
||||
{{ printf "<script src=\"//cdn.plyr.io/%s/plyr.polyfilled.js\" integrity=\"%s\" crossorigin=\"anonymous\"></script>" $js.plyr.version $js.plyr.integrity | safeHTML }}
|
||||
{{ end }}
|
||||
{{ if .Site.Params.instant_page }}{{ printf "<script src=\"//instant.page/%s\" type=\"module\" defer integrity=\"%s\" crossorigin=\"anonymous\"></script>" $js.instantpage.version $js.instantpage.integrity | safeHTML }}{{ end }}
|
||||
{{ if .Site.GoogleAnalytics }}{{ template "_internal/google_analytics_async.html" . }}{{ end }}
|
||||
</body>
|
||||
</html>
|
||||
9
themes/alpha-church/layouts/series/list.html
Normal file
9
themes/alpha-church/layouts/series/list.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{{ define "main" }}
|
||||
{{ "<!-- Main -->" | safeHTML }}
|
||||
<section id="main" class="container">
|
||||
<header>
|
||||
<h2>{{ .Title | title }}</h2>
|
||||
</header>
|
||||
{{ partial "listbody" . }}
|
||||
</section>
|
||||
{{ end }}
|
||||
19
themes/alpha-church/layouts/sermons/list.html
Normal file
19
themes/alpha-church/layouts/sermons/list.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{ define "main" }}
|
||||
{{ "<!-- Main -->" | safeHTML }}
|
||||
<section id="main" class="container">
|
||||
<header>
|
||||
<h2>{{ .Title | title }}</h2>
|
||||
{{ if (and (.Site.Params.Podcast.itunes) (.Site.Params.Podcast.feed)) }}
|
||||
<ul class="icons">
|
||||
<li>
|
||||
<a href="https://subscribeonandroid.com/{{ index (split .Site.Params.Podcast.feed "://") 1 }}" target="_blank"><i class="icon fab fa-android"><span class="label">Subscribe on Android</span></i>Subscribe on Android</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ .Site.Params.Podcast.iTunes }}" target="_blank"><i class="icon fab fa-apple"><span class="label">Subscribe on iTunes</span></i>Subscribe in iTunes</a>
|
||||
</li>
|
||||
</ul>
|
||||
{{ end }}
|
||||
</header>
|
||||
{{ partial "listbody" . }}
|
||||
</section>
|
||||
{{ end }}
|
||||
67
themes/alpha-church/layouts/sermons/sermons.rss.xml
Normal file
67
themes/alpha-church/layouts/sermons/sermons.rss.xml
Normal file
@@ -0,0 +1,67 @@
|
||||
<rss version="2.0"
|
||||
xmlns:content="https://purl.org/rss/1.0/modules/content/"
|
||||
xmlns:wfw="https://wellformedweb.org/CommentAPI/"
|
||||
xmlns:dc="https://purl.org/dc/elements/1.1/"
|
||||
xmlns:atom="https://www.w3.org/2005/Atom"
|
||||
xmlns:sy="https://purl.org/rss/1.0/modules/syndication/"
|
||||
xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
|
||||
xmlns:itunes="https://www.itunes.com/dtds/podcast-1.0.dtd"
|
||||
xmlns:media="https://search.yahoo.com/mrss/"
|
||||
xmlns:googleplay="https://www.google.com/schemas/play-podcasts/1.0">
|
||||
<channel>
|
||||
<title>{{ .Site.Params.Podcast.title }}</title>
|
||||
<link>{{ .Site.BaseURL }}</link>
|
||||
<atom:link href="{{ .Site.BaseURL }}sermons/index.xml" rel="self" type="application/rss+xml" />
|
||||
<language>{{ .Site.LanguageCode }}</language>
|
||||
<lastBuildDate>{{ dateFormat "Mon, 2 Jan 2006 15:04:05 -0700" .Date }}</lastBuildDate>
|
||||
<copyright>{{ .Site.Params.Podcast.copyright | plainify }}</copyright>
|
||||
<itunes:subtitle>{{ .Site.Params.Podcast.subtitle }}</itunes:subtitle>
|
||||
<itunes:author>{{ .Site.Params.author }}</itunes:author>
|
||||
<itunes:summary>{{ .Site.Params.Podcast.summary | plainify }}</itunes:summary>
|
||||
<description>{{ .Site.Params.Podcast.summary |plainify }}</description>
|
||||
<itunes:owner>
|
||||
<itunes:name>{{ .Site.Params.author }}</itunes:name>
|
||||
<itunes:email>{{ .Site.Params.Podcast.email }}</itunes:email>
|
||||
</itunes:owner>
|
||||
<itunes:image href="{{.Site.BaseURL}}{{ .Site.Params.Podcast.image }}" />
|
||||
<itunes:category text="{{ .Site.Params.Podcast.category }}">
|
||||
<itunes:category text="{{ .Site.Params.Podcast.sub_category }}" />
|
||||
</itunes:category>
|
||||
<itunes:block>no</itunes:block>
|
||||
<itunes:explicit>no</itunes:explicit>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
{{- $pages := .Data.Pages -}}
|
||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||
{{- if ge $limit 1 -}}
|
||||
{{- $pages = $pages | first $limit -}}
|
||||
{{- end -}}
|
||||
{{- range $pages -}}
|
||||
<item>
|
||||
<title>{{ title .Params.title }}{{ with .Params.passage }} ({{ . }}){{ end }}</title>
|
||||
<itunes:author>{{ index .Params.preachers 0 }}</itunes:author>
|
||||
<itunes:summary>{{ .Summary | plainify }}</itunes:summary>
|
||||
{{ printf "<description><![CDATA[%s]]></description>" .Content | safeHTML }}
|
||||
{{ printf `<googleplay:description><![CDATA[%s]]></googleplay:description>` .Content | safeHTML }}
|
||||
{{ printf "<content:encoded><![CDATA[%s]]></content:encoded>" .Content | safeHTML }}
|
||||
{{- with .Params.images -}}<itunes:image href="{{ index . 0 | absURL }}"/>{{- end -}}
|
||||
{{ $audio_name_arr := split (index .Params.audio 0) "." }}
|
||||
{{ $audio_type := index $audio_name_arr (sub (len $audio_name_arr) 1) }}
|
||||
{{ $audio_size := 1 }}
|
||||
{{- if .Params.audio_size }}{{ $audio_size = int .Params.audio_size }} {{ end -}}
|
||||
<enclosure url="{{ index .Params.audio 0 | absURL }}" length="{{ $audio_size }}" type="audio/{{ $audio_type }}" />
|
||||
<guid>{{ index .Params.audio 0 | absURL }}</guid>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} </pubDate>
|
||||
{{ with .Params.audio_duration }}<itunes:duration>{{ . }}</itunes:duration>{{ end }}
|
||||
{{- if .Params.tags -}}
|
||||
<itunes:keywords>
|
||||
{{- range $index, $key:= .Params.tags -}}
|
||||
{{- if $index }}, {{ end -}}
|
||||
{{- if gt (len $key) 0 }}{{ $key }}{{ end -}}
|
||||
{{- end -}}
|
||||
</itunes:keywords>
|
||||
{{- end -}}
|
||||
</item>
|
||||
{{ end }}
|
||||
</channel>
|
||||
</rss>
|
||||
66
themes/alpha-church/layouts/sermons/single.html
Normal file
66
themes/alpha-church/layouts/sermons/single.html
Normal file
@@ -0,0 +1,66 @@
|
||||
{{ define "main" }}
|
||||
{{ "<!-- Main -->" | safeHTML }}
|
||||
<section id="main" class="container">
|
||||
<header>
|
||||
<h2>{{ if .Draft }}DRAFT: {{end}}{{ .Params.title }}</h2>
|
||||
{{ with .Params.passage }}<p>{{ . }}</p>{{ end }}
|
||||
</header>
|
||||
<div class="box">
|
||||
<div class="row">
|
||||
<div class="col-6 col-12-mobilep">
|
||||
{{ with .Params.images }}
|
||||
<span class="image fit"><img src="{{ index . 0 | absURL }}" alt=""></span>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="col-6 col-12-mobilep">
|
||||
{{ range .Params.audio }}
|
||||
{{ $audio_name_arr := split . "." }}
|
||||
{{ $audio_type := index $audio_name_arr (sub (len $audio_name_arr) 1) }}
|
||||
<ul class="actions small">
|
||||
<li>
|
||||
<audio id="player" controls>
|
||||
<source src="{{ . }}" preload="auto" type="audio/{{ $audio_type }}">
|
||||
Your browser doesn't support embedded audio.
|
||||
</audio>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ . }}" class="button alt small" download><i class="icon fas fa-download"></i> Download</a>
|
||||
</li>
|
||||
</ul>
|
||||
{{ end }} {{/* range .Params.audio */}}
|
||||
{{ .Content }}
|
||||
{{ if .Params.preachers }}
|
||||
<p>Preacher:
|
||||
{{ range $index, $key := .Params.preachers }}
|
||||
{{ if $index }}, {{ end }}
|
||||
{{ if gt (len $key) 0 }}
|
||||
<a href="/preachers/{{ $key | urlize }}/">{{ $key }}</a>
|
||||
{{ end }} {{/* if */}}
|
||||
{{ end }} {{/* range */}}
|
||||
{{ end }} {{/* end if preachers */}}
|
||||
{{ if .Params.series }}
|
||||
<p> Series:
|
||||
{{ range $index, $key := .Params.series }}
|
||||
{{ if $index }}, {{ end }}
|
||||
{{ if gt (len $key) 0 }}
|
||||
<a href="/series/{{ $key | urlize }}/">{{ $key }}</a>
|
||||
{{ end }} {{/* if */}}
|
||||
{{ end }} {{/* range */}}
|
||||
</p>
|
||||
{{ end }} {{/* end if series */}}
|
||||
{{ if .Params.tags }}
|
||||
<p>Topics:
|
||||
{{ range $index, $key:= .Params.tags }}
|
||||
{{ if $index }}, {{ end }}
|
||||
{{ if gt (len $key) 0 }}
|
||||
<a href="/tags/{{$key | urlize }}/">#{{ $key }}</a>
|
||||
{{ end }} {{/* if gt len */}}
|
||||
{{ end }} {{/* range */}}
|
||||
</p>
|
||||
{{ end }} {{/* end if tags */}}
|
||||
{{ with .Params.date }}<p>Date: {{ . | dateFormat "January 2, 2006"}}</p>{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user