First commit
This commit is contained in:
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