First commit

This commit is contained in:
mpuccini
2021-02-16 16:29:19 +01:00
commit 78e7b28f72
159 changed files with 18172 additions and 0 deletions

View 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>

View 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>
&nbsp;
{{ .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>
&nbsp;
{{ .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 }}

View 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>

View 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>

View 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>

View 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 &copy; <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 "&region=" .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 }}

View 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>

View 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>