First commit
This commit is contained in:
172
themes/alpha-church/exampleSite/config.toml
Normal file
172
themes/alpha-church/exampleSite/config.toml
Normal file
@@ -0,0 +1,172 @@
|
||||
baseURL = "http://example.org/"
|
||||
languageCode = "en-us"
|
||||
title = "Alpha Church"
|
||||
theme = "alpha-church"
|
||||
themesDir = "../.."
|
||||
|
||||
rssLimit = 5
|
||||
paginate = 4
|
||||
|
||||
enableEmoji = true
|
||||
|
||||
# Enter your tracking code to enable Google Analytics
|
||||
googleAnalytics = ""
|
||||
|
||||
enableInlineShortcodes = true
|
||||
|
||||
[markup.goldmark.renderer]
|
||||
unsafe = true
|
||||
|
||||
[taxonomies]
|
||||
tag = "tags"
|
||||
preacher = "preachers"
|
||||
series = "series"
|
||||
|
||||
#This theme can generate a multi-level menu.
|
||||
#Use weight= to specify the order of menu items, and parent= to create a submenu item.
|
||||
[menu]
|
||||
[[menu.main]]
|
||||
name = "Home"
|
||||
url = "/"
|
||||
weight = 1
|
||||
|
||||
[[menu.main]]
|
||||
name = "About"
|
||||
url = "/about"
|
||||
weight = 2
|
||||
|
||||
[[menu.main]]
|
||||
name = "About Us"
|
||||
parent = "About"
|
||||
url = "/about"
|
||||
weight = 1
|
||||
|
||||
[[menu.main]]
|
||||
name = "Leaders"
|
||||
parent = "About"
|
||||
url = "/leaders"
|
||||
weight = 2
|
||||
|
||||
[[menu.main]]
|
||||
name = "Resources"
|
||||
url = "#"
|
||||
weight = 3
|
||||
|
||||
[[menu.main]]
|
||||
name = "Sermons"
|
||||
url = "/sermons"
|
||||
parent = "Resources"
|
||||
weight = 1
|
||||
|
||||
[[menu.main]]
|
||||
name = "Preachers"
|
||||
url = "/preachers"
|
||||
parent = "Sermons"
|
||||
weight = 1
|
||||
|
||||
[[menu.main]]
|
||||
name = "Best Ever"
|
||||
url = "#"
|
||||
parent = "Sermons"
|
||||
weight = 1
|
||||
|
||||
[[menu.main]]
|
||||
name = "Blog"
|
||||
url = "/posts"
|
||||
parent = "Resources"
|
||||
weight = 2
|
||||
|
||||
[[menu.main]]
|
||||
name = "Contact"
|
||||
url = "/contact"
|
||||
weight = 4
|
||||
|
||||
# Paramaters for the whole site
|
||||
[params]
|
||||
title = "Alpha Church"
|
||||
subtitle = "Another Church Theme"
|
||||
author = "Daniel Saunders"
|
||||
keywords = ["theme", "hugo", "podcast"]
|
||||
languageCode = "en" # For accessibility this needs to be set. You can find all language codes at https://www.w3schools.com/tags/ref_language_codes.asp
|
||||
|
||||
bible_popups = "faithlife" #faithlife, blb
|
||||
bible_version = "CSB" #HCSB, NIV, NLT, ESV, etc.
|
||||
instant_page = true
|
||||
|
||||
customCSS = ["example.css"]
|
||||
|
||||
[params.banner]
|
||||
image = "img/banner.jpg"
|
||||
|
||||
# [params.style]
|
||||
# googleFonts = ["Cardo", "Crimson+Text", "Merriweather", "Playfair+Display:400,700", "Roboto+Slab"]
|
||||
|
||||
[params.podcast]
|
||||
title = "Listen to Alpha Church"
|
||||
subtitle = ""
|
||||
summary = "Alpha-Church sermons, talks, messages—podcasted."
|
||||
email = "test@example.com"
|
||||
copyright = "Podcast: [CC0 (public domain)](//creativecommons.org/publicdomain/zero/1.0/)"
|
||||
image = "img/podcast-cover.jpg"
|
||||
category = "Religion & Spirituality"
|
||||
sub_category = "Christianity"
|
||||
iTunes = "https://itunes.apple.com/us/podcast/tgc-word-of-the-week/id1034013280"
|
||||
feed = "https://www.thegospelcoalition.org/podcasts/word-of-the-week/feed/?feed=podcast"
|
||||
|
||||
[params.map]
|
||||
service = "osm" #"osm" for OpenStreetMaps, "google" for Google Maps, or "mapbox" for Mapbox, see SETUP.md
|
||||
# For Open Street Map widgets
|
||||
latitude = "48.8530"
|
||||
longitude = "2.3498"
|
||||
zoom = "18"
|
||||
# If you want to use google maps you'll need an API Key from Google https://developers.google.com/maps/documentation/embed/get-api-key
|
||||
#service = "google"
|
||||
#api_key = "XXXXXXXX"
|
||||
#language = "fr" #Optional
|
||||
#region = "FR" #Optional
|
||||
|
||||
[params.contact]
|
||||
#Use this section to automate contact form.
|
||||
#Set service to either "netlify", "formspree" or "php"
|
||||
#For formspree, please setup an account at https://formspree.io/
|
||||
#For netlify, please read https://www.netlify.com/docs/form-handling/
|
||||
#
|
||||
#If you use netlify, you'll need to set the confirm_page value (or else users will see a generic netlify response)
|
||||
#If you use formspree, you'll need to set your formspree email address.
|
||||
#
|
||||
#If you use php, you need to host this site on a Server capable of running php.
|
||||
# Please edit the /static/contact_mail.php file from the exampleSite.
|
||||
service = "netlify"
|
||||
confirm_page = "/contact_thanks"
|
||||
# formspree_email=""
|
||||
|
||||
|
||||
[params.footer]
|
||||
copyright = ["[CC0 (public domain)](//creativecommons.org/publicdomain/zero/1.0/)",
|
||||
"Design: [HTML5 UP](//html5up.net/alpha)",
|
||||
"[Hugo Port](//gohugo.io) by [Daniel Saunders](//github.com/funkydan2)"
|
||||
]
|
||||
|
||||
[[params.links]]
|
||||
service = "Twitter"
|
||||
icon = "fa-twitter"
|
||||
icon_pack = "fab"
|
||||
link = "//twitter.com/"
|
||||
|
||||
[[params.links]]
|
||||
service = "Facebook"
|
||||
icon = "fa-facebook"
|
||||
icon_pack = "fab"
|
||||
link = "//facebook.com/"
|
||||
|
||||
[[params.links]]
|
||||
service = "Podcast"
|
||||
icon = "fa-podcast"
|
||||
icon_pack = "fas"
|
||||
link = "/sermons/index.xml"
|
||||
|
||||
[[params.links]]
|
||||
service = "Full RSS Feed"
|
||||
icon = "fa-rss"
|
||||
icon_pack = "fas"
|
||||
link = "/index.xml"
|
||||
73
themes/alpha-church/exampleSite/content/_index.md
Normal file
73
themes/alpha-church/exampleSite/content/_index.md
Normal file
@@ -0,0 +1,73 @@
|
||||
+++
|
||||
[banner]
|
||||
[[banner.button]]
|
||||
url = "/contact"
|
||||
text = "Get in touch"
|
||||
type = "primary"
|
||||
|
||||
[[banner.button]]
|
||||
url = "#feature-icons"
|
||||
text = "Find out more"
|
||||
|
||||
#Details for the box below the banner
|
||||
[services]
|
||||
title = "Church on Sunday"
|
||||
text = "We meet at 5 am and 2 pm at [6 Parvis Notre-Dame - Pl. Jean-Paul II, 75004 Paris](https://www.openstreetmap.org/way/201611261)."
|
||||
map_location = "Cathédrale Notre-Dame de Paris"
|
||||
|
||||
[feature_icons]
|
||||
#These feature icons look best if there's an even number of them.
|
||||
enable = true
|
||||
|
||||
#Accent is a colour defined in the CSS file. Choose between 1 and 5
|
||||
[[feature_icons.tile]]
|
||||
icon = "fa-hands-helping"
|
||||
icon_pack = "fas"
|
||||
accent = "1"
|
||||
title = "Serve"
|
||||
text = "Growing people who serve our community."
|
||||
url = "/kids"
|
||||
|
||||
[[feature_icons.tile]]
|
||||
icon = "fa-church"
|
||||
icon_pack = "fas"
|
||||
accent = "2"
|
||||
title = "Meet"
|
||||
text = "Meeting together to hear."
|
||||
|
||||
[[feature_icons.tile]]
|
||||
icon = "fa-comments"
|
||||
icon_pack = "fas"
|
||||
accent = "5"
|
||||
title = "Speak"
|
||||
text = "Speaking encouragement to one-another."
|
||||
|
||||
[[feature_icons.tile]]
|
||||
icon = "fa-heartbeat"
|
||||
icon_pack = "fas"
|
||||
accent = "3"
|
||||
title = "Loved"
|
||||
text = "Knowing Love. Being Loved."
|
||||
|
||||
[feature_images]
|
||||
#These feature images look best if there's an even number of them.
|
||||
enable = true
|
||||
|
||||
[[feature_images.tile]]
|
||||
image = "img/freely-10057.jpg"
|
||||
title = "Childrens' Ministry"
|
||||
text = "A church for the family."
|
||||
url = "/kids"
|
||||
button_text = "Learn more"
|
||||
|
||||
[[feature_images.tile]]
|
||||
image = "img/freely-26905.jpg"
|
||||
title = "Midweek Ministries"
|
||||
text = "Want more during the week?"
|
||||
url = "#"
|
||||
button_text="Join a group today!"
|
||||
|
||||
[CTA]
|
||||
heading = "Get in touch!"
|
||||
message = "We'd love to hear from you."
|
||||
+++
|
||||
18
themes/alpha-church/exampleSite/content/about.md
Normal file
18
themes/alpha-church/exampleSite/content/about.md
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
title: "About"
|
||||
subtitle: "About Alpha-Church"
|
||||
date: 2018-04-30T10:05:49+10:00
|
||||
images: ["img/freely-20445.jpg"]
|
||||
draft: false
|
||||
---
|
||||
|
||||
This is an example about page.
|
||||
|
||||
With a bible quote for good measure!
|
||||
|
||||
> “For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life. For God did not send his Son into the world to condemn the world, but to save the world through him. Whoever believes in him is not condemned, but whoever does not believe stands condemned already because they have not believed in the name of God’s one and only Son.”
|
||||
|
||||
(John 3:16–18 NIV)
|
||||
|
||||
And a map
|
||||
{{< loc.inline >}}{{ partial "map" . }}{{< /loc.inline >}}
|
||||
10
themes/alpha-church/exampleSite/content/contact.md
Normal file
10
themes/alpha-church/exampleSite/content/contact.md
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
title: "Contact"
|
||||
subtitle: ""
|
||||
date: 2018-05-12T13:49:50+10:00
|
||||
images: ["img/pavan-trikutam-71CjSSB83Wo-unsplash.jpg"]
|
||||
tags: ""
|
||||
draft: false
|
||||
---
|
||||
|
||||
{{< contact.inline >}}{{ partial "contact" . }}{{< /contact.inline >}}
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
title: "Thanks for Contacting Us"
|
||||
subtitle: ""
|
||||
date: 2018-05-12T13:38:38+10:00
|
||||
images: ["img/pavan-trikutam-71CjSSB83Wo-unsplash.jpg"]
|
||||
tags: ""
|
||||
draft: false
|
||||
---
|
||||
Thanks for touching base with us. Someone from **Alpha** *Church* will be in touch soon.
|
||||
21
themes/alpha-church/exampleSite/content/kids.md
Normal file
21
themes/alpha-church/exampleSite/content/kids.md
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
title: "Kids"
|
||||
subtitle: "Ministry with Children"
|
||||
date: 2018-05-01T07:39:12+10:00
|
||||
images: [img/freely-10057.jpg]
|
||||
tags: ["two_column","ministry"]
|
||||
draft: false
|
||||
---
|
||||
This is an example of multiple columns.
|
||||
|
||||
Unfortunately it needs the author to write html to work (though I could put everything in the front matter!)
|
||||
<div class="row">
|
||||
<div class="col-6 col-12-mobilep">
|
||||
<h3>Left Column</h3>
|
||||
<p>You can fill this in with <i>html</i> or *markdown* </p>
|
||||
</div>
|
||||
<div class="col-6 col-12-mobilep">
|
||||
<h3>And another subheading</h3>
|
||||
<p>Adipiscing faucibus nunc placerat. Tempus adipiscing turpis non blandit accumsan eget lacinia nunc integer interdum amet aliquam ut orci non col ut ut praesent. Semper amet interdum mi. Phasellus enim laoreet ac ac commodo faucibus faucibus. Curae lorem ipsum adipiscing ac. Vivamus ornare laoreet odio vis praesent.</p>
|
||||
</div>
|
||||
</div>
|
||||
8
themes/alpha-church/exampleSite/content/leaders.md
Normal file
8
themes/alpha-church/exampleSite/content/leaders.md
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
title: "Leaders"
|
||||
date: 2018-04-30T14:27:13+10:00
|
||||
draft: false
|
||||
---
|
||||
# This is a page about leaders
|
||||
|
||||

|
||||
File diff suppressed because it is too large
Load Diff
344
themes/alpha-church/exampleSite/content/posts/goisforlovers.md
Normal file
344
themes/alpha-church/exampleSite/content/posts/goisforlovers.md
Normal file
@@ -0,0 +1,344 @@
|
||||
+++
|
||||
title = "(Hu)go Template Primer"
|
||||
description = ""
|
||||
tags = [
|
||||
"go",
|
||||
"golang",
|
||||
"templates",
|
||||
"themes",
|
||||
"development",
|
||||
]
|
||||
date = "2014-04-02"
|
||||
categories = [
|
||||
"Development",
|
||||
"golang",
|
||||
]
|
||||
images = []
|
||||
+++
|
||||
|
||||
Hugo uses the excellent [go][] [html/template][gohtmltemplate] library for
|
||||
its template engine. It is an extremely lightweight engine that provides a very
|
||||
small amount of logic. In our experience that it is just the right amount of
|
||||
logic to be able to create a good static website. If you have used other
|
||||
template systems from different languages or frameworks you will find a lot of
|
||||
similarities in go templates.
|
||||
|
||||
This document is a brief primer on using go templates. The [go docs][gohtmltemplate]
|
||||
provide more details.
|
||||
|
||||
## Introduction to Go Templates
|
||||
|
||||
Go templates provide an extremely simple template language. It adheres to the
|
||||
belief that only the most basic of logic belongs in the template or view layer.
|
||||
One consequence of this simplicity is that go templates parse very quickly.
|
||||
|
||||
A unique characteristic of go templates is they are content aware. Variables and
|
||||
content will be sanitized depending on the context of where they are used. More
|
||||
details can be found in the [go docs][gohtmltemplate].
|
||||
|
||||
## Basic Syntax
|
||||
|
||||
Go lang templates are html files with the addition of variables and
|
||||
functions.
|
||||
|
||||
**Go variables and functions are accessible within {{ }}**
|
||||
|
||||
Accessing a predefined variable "foo":
|
||||
|
||||
{{ foo }}
|
||||
|
||||
**Parameters are separated using spaces**
|
||||
|
||||
Calling the add function with input of 1, 2:
|
||||
|
||||
{{ add 1 2 }}
|
||||
|
||||
**Methods and fields are accessed via dot notation**
|
||||
|
||||
Accessing the Page Parameter "bar"
|
||||
|
||||
{{ .Params.bar }}
|
||||
|
||||
**Parentheses can be used to group items together**
|
||||
|
||||
{{ if or (isset .Params "alt") (isset .Params "caption") }} Caption {{ end }}
|
||||
|
||||
|
||||
## Variables
|
||||
|
||||
Each go template has a struct (object) made available to it. In hugo each
|
||||
template is passed either a page or a node struct depending on which type of
|
||||
page you are rendering. More details are available on the
|
||||
[variables](/layout/variables) page.
|
||||
|
||||
A variable is accessed by referencing the variable name.
|
||||
|
||||
<title>{{ .Title }}</title>
|
||||
|
||||
Variables can also be defined and referenced.
|
||||
|
||||
{{ $address := "123 Main St."}}
|
||||
{{ $address }}
|
||||
|
||||
|
||||
## Functions
|
||||
|
||||
Go template ship with a few functions which provide basic functionality. The go
|
||||
template system also provides a mechanism for applications to extend the
|
||||
available functions with their own. [Hugo template
|
||||
functions](/layout/functions) provide some additional functionality we believe
|
||||
are useful for building websites. Functions are called by using their name
|
||||
followed by the required parameters separated by spaces. Template
|
||||
functions cannot be added without recompiling hugo.
|
||||
|
||||
**Example:**
|
||||
|
||||
{{ add 1 2 }}
|
||||
|
||||
## Includes
|
||||
|
||||
When including another template you will pass to it the data it will be
|
||||
able to access. To pass along the current context please remember to
|
||||
include a trailing dot. The templates location will always be starting at
|
||||
the /layout/ directory within Hugo.
|
||||
|
||||
**Example:**
|
||||
|
||||
{{ template "chrome/header.html" . }}
|
||||
|
||||
|
||||
## Logic
|
||||
|
||||
Go templates provide the most basic iteration and conditional logic.
|
||||
|
||||
### Iteration
|
||||
|
||||
Just like in go, the go templates make heavy use of range to iterate over
|
||||
a map, array or slice. The following are different examples of how to use
|
||||
range.
|
||||
|
||||
**Example 1: Using Context**
|
||||
|
||||
{{ range array }}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
**Example 2: Declaring value variable name**
|
||||
|
||||
{{range $element := array}}
|
||||
{{ $element }}
|
||||
{{ end }}
|
||||
|
||||
**Example 2: Declaring key and value variable name**
|
||||
|
||||
{{range $index, $element := array}}
|
||||
{{ $index }}
|
||||
{{ $element }}
|
||||
{{ end }}
|
||||
|
||||
### Conditionals
|
||||
|
||||
If, else, with, or, & and provide the framework for handling conditional
|
||||
logic in Go Templates. Like range, each statement is closed with `end`.
|
||||
|
||||
|
||||
Go Templates treat the following values as false:
|
||||
|
||||
* false
|
||||
* 0
|
||||
* any array, slice, map, or string of length zero
|
||||
|
||||
**Example 1: If**
|
||||
|
||||
{{ if isset .Params "title" }}<h4>{{ index .Params "title" }}</h4>{{ end }}
|
||||
|
||||
**Example 2: If -> Else**
|
||||
|
||||
{{ if isset .Params "alt" }}
|
||||
{{ index .Params "alt" }}
|
||||
{{else}}
|
||||
{{ index .Params "caption" }}
|
||||
{{ end }}
|
||||
|
||||
**Example 3: And & Or**
|
||||
|
||||
{{ if and (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")}}
|
||||
|
||||
**Example 4: With**
|
||||
|
||||
An alternative way of writing "if" and then referencing the same value
|
||||
is to use "with" instead. With rebinds the context `.` within its scope,
|
||||
and skips the block if the variable is absent.
|
||||
|
||||
The first example above could be simplified as:
|
||||
|
||||
{{ with .Params.title }}<h4>{{ . }}</h4>{{ end }}
|
||||
|
||||
**Example 5: If -> Else If**
|
||||
|
||||
{{ if isset .Params "alt" }}
|
||||
{{ index .Params "alt" }}
|
||||
{{ else if isset .Params "caption" }}
|
||||
{{ index .Params "caption" }}
|
||||
{{ end }}
|
||||
|
||||
## Pipes
|
||||
|
||||
One of the most powerful components of go templates is the ability to
|
||||
stack actions one after another. This is done by using pipes. Borrowed
|
||||
from unix pipes, the concept is simple, each pipeline's output becomes the
|
||||
input of the following pipe.
|
||||
|
||||
Because of the very simple syntax of go templates, the pipe is essential
|
||||
to being able to chain together function calls. One limitation of the
|
||||
pipes is that they only can work with a single value and that value
|
||||
becomes the last parameter of the next pipeline.
|
||||
|
||||
A few simple examples should help convey how to use the pipe.
|
||||
|
||||
**Example 1 :**
|
||||
|
||||
{{ if eq 1 1 }} Same {{ end }}
|
||||
|
||||
is the same as
|
||||
|
||||
{{ eq 1 1 | if }} Same {{ end }}
|
||||
|
||||
It does look odd to place the if at the end, but it does provide a good
|
||||
illustration of how to use the pipes.
|
||||
|
||||
**Example 2 :**
|
||||
|
||||
{{ index .Params "disqus_url" | html }}
|
||||
|
||||
Access the page parameter called "disqus_url" and escape the HTML.
|
||||
|
||||
**Example 3 :**
|
||||
|
||||
{{ if or (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")}}
|
||||
Stuff Here
|
||||
{{ end }}
|
||||
|
||||
Could be rewritten as
|
||||
|
||||
{{ isset .Params "caption" | or isset .Params "title" | or isset .Params "attr" | if }}
|
||||
Stuff Here
|
||||
{{ end }}
|
||||
|
||||
|
||||
## Context (aka. the dot)
|
||||
|
||||
The most easily overlooked concept to understand about go templates is that {{ . }}
|
||||
always refers to the current context. In the top level of your template this
|
||||
will be the data set made available to it. Inside of a iteration it will have
|
||||
the value of the current item. When inside of a loop the context has changed. .
|
||||
will no longer refer to the data available to the entire page. If you need to
|
||||
access this from within the loop you will likely want to set it to a variable
|
||||
instead of depending on the context.
|
||||
|
||||
**Example:**
|
||||
|
||||
{{ $title := .Site.Title }}
|
||||
{{ range .Params.tags }}
|
||||
<li> <a href="{{ $baseurl }}/tags/{{ . | urlize }}">{{ . }}</a> - {{ $title }} </li>
|
||||
{{ end }}
|
||||
|
||||
Notice how once we have entered the loop the value of {{ . }} has changed. We
|
||||
have defined a variable outside of the loop so we have access to it from within
|
||||
the loop.
|
||||
|
||||
# Hugo Parameters
|
||||
|
||||
Hugo provides the option of passing values to the template language
|
||||
through the site configuration (for sitewide values), or through the meta
|
||||
data of each specific piece of content. You can define any values of any
|
||||
type (supported by your front matter/config format) and use them however
|
||||
you want to inside of your templates.
|
||||
|
||||
|
||||
## Using Content (page) Parameters
|
||||
|
||||
In each piece of content you can provide variables to be used by the
|
||||
templates. This happens in the [front matter](/content/front-matter).
|
||||
|
||||
An example of this is used in this documentation site. Most of the pages
|
||||
benefit from having the table of contents provided. Sometimes the TOC just
|
||||
doesn't make a lot of sense. We've defined a variable in our front matter
|
||||
of some pages to turn off the TOC from being displayed.
|
||||
|
||||
Here is the example front matter:
|
||||
|
||||
```
|
||||
---
|
||||
title: "Permalinks"
|
||||
date: "2013-11-18"
|
||||
aliases:
|
||||
- "/doc/permalinks/"
|
||||
groups: ["extras"]
|
||||
groups_weight: 30
|
||||
notoc: true
|
||||
---
|
||||
```
|
||||
|
||||
Here is the corresponding code inside of the template:
|
||||
|
||||
{{ if not .Params.notoc }}
|
||||
<div id="toc" class="well col-md-4 col-sm-6">
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
||||
## Using Site (config) Parameters
|
||||
In your top-level configuration file (eg, `config.yaml`) you can define site
|
||||
parameters, which are values which will be available to you in chrome.
|
||||
|
||||
For instance, you might declare:
|
||||
|
||||
```yaml
|
||||
params:
|
||||
CopyrightHTML: "Copyright © 2013 John Doe. All Rights Reserved."
|
||||
TwitterUser: "spf13"
|
||||
SidebarRecentLimit: 5
|
||||
```
|
||||
|
||||
Within a footer layout, you might then declare a `<footer>` which is only
|
||||
provided if the `CopyrightHTML` parameter is provided, and if it is given,
|
||||
you would declare it to be HTML-safe, so that the HTML entity is not escaped
|
||||
again. This would let you easily update just your top-level config file each
|
||||
January 1st, instead of hunting through your templates.
|
||||
|
||||
```
|
||||
{{if .Site.Params.CopyrightHTML}}<footer>
|
||||
<div class="text-center">{{.Site.Params.CopyrightHTML | safeHtml}}</div>
|
||||
</footer>{{end}}
|
||||
```
|
||||
|
||||
An alternative way of writing the "if" and then referencing the same value
|
||||
is to use "with" instead. With rebinds the context `.` within its scope,
|
||||
and skips the block if the variable is absent:
|
||||
|
||||
```
|
||||
{{with .Site.Params.TwitterUser}}<span class="twitter">
|
||||
<a href="//twitter.com/{{.}}" rel="author">
|
||||
<img src="/images/twitter.png" width="48" height="48" title="Twitter: {{.}}"
|
||||
alt="Twitter"></a>
|
||||
</span>{{end}}
|
||||
```
|
||||
|
||||
Finally, if you want to pull "magic constants" out of your layouts, you can do
|
||||
so, such as in this example:
|
||||
|
||||
```
|
||||
<nav class="recent">
|
||||
<h1>Recent Posts</h1>
|
||||
<ul>{{range first .Site.Params.SidebarRecentLimit .Site.Recent}}
|
||||
<li><a href="{{.RelPermalink}}">{{.Title}}</a></li>
|
||||
{{end}}</ul>
|
||||
</nav>
|
||||
```
|
||||
|
||||
|
||||
[go]: <//golang.org/>
|
||||
[gohtmltemplate]: <//golang.org/pkg/html/template/>
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
title: "Hello World!"
|
||||
subtitle: "Just wanted to say..."
|
||||
date: 2018-05-03T21:08:01+10:00
|
||||
images: ["img/freely-26905.jpg"]
|
||||
tags: ["testing"]
|
||||
---
|
||||
Just saying *hi*!
|
||||
@@ -0,0 +1,89 @@
|
||||
+++
|
||||
title = "Getting Started with Hugo"
|
||||
description = ""
|
||||
tags = [
|
||||
"go",
|
||||
"golang",
|
||||
"hugo",
|
||||
"development",
|
||||
]
|
||||
date = "2014-04-02"
|
||||
categories = [
|
||||
"Development",
|
||||
"golang",
|
||||
]
|
||||
images = []
|
||||
+++
|
||||
|
||||
## Step 1. Install Hugo
|
||||
|
||||
Goto [hugo releases](https://github.com/spf13/hugo/releases) and download the
|
||||
appropriate version for your os and architecture.
|
||||
|
||||
Save it somewhere specific as we will be using it in the next step.
|
||||
|
||||
More complete instructions are available at [installing hugo](/overview/installing/)
|
||||
|
||||
## Step 2. Build the Docs
|
||||
|
||||
Hugo has its own example site which happens to also be the documentation site
|
||||
you are reading right now.
|
||||
|
||||
Follow the following steps:
|
||||
|
||||
1. Clone the [hugo repository](//github.com/spf13/hugo)
|
||||
2. Go into the repo
|
||||
3. Run hugo in server mode and build the docs
|
||||
4. Open your browser to http://localhost:1313
|
||||
|
||||
Corresponding pseudo commands:
|
||||
|
||||
git clone https://github.com/spf13/hugo
|
||||
cd hugo
|
||||
/path/to/where/you/installed/hugo server --source=./docs
|
||||
> 29 pages created
|
||||
> 0 tags index created
|
||||
> in 27 ms
|
||||
> Web Server is available at http://localhost:1313
|
||||
> Press ctrl+c to stop
|
||||
|
||||
Once you've gotten here, follow along the rest of this page on your local build.
|
||||
|
||||
## Step 3. Change the docs site
|
||||
|
||||
Stop the Hugo process by hitting ctrl+c.
|
||||
|
||||
Now we are going to run hugo again, but this time with hugo in watch mode.
|
||||
|
||||
/path/to/hugo/from/step/1/hugo server --source=./docs --watch
|
||||
> 29 pages created
|
||||
> 0 tags index created
|
||||
> in 27 ms
|
||||
> Web Server is available at http://localhost:1313
|
||||
> Watching for changes in /Users/spf13/Code/hugo/docs/content
|
||||
> Press ctrl+c to stop
|
||||
|
||||
|
||||
Open your [favorite editor](//vim.spf13.com) and change one of the source
|
||||
content pages. How about changing this very file to *fix the typo*. How about changing this very file to *fix the typo*.
|
||||
|
||||
Content files are found in `docs/content/`. Unless otherwise specified, files
|
||||
are located at the same relative location as the url, in our case
|
||||
`docs/content/overview/quickstart.md`.
|
||||
|
||||
Change and save this file.. Notice what happened in your terminal.
|
||||
|
||||
> Change detected, rebuilding site
|
||||
|
||||
> 29 pages created
|
||||
> 0 tags index created
|
||||
> in 26 ms
|
||||
|
||||
Refresh the browser and observe that the typo is now fixed.
|
||||
|
||||
Notice how quick that was. Try to refresh the site before it's finished building.. I double dare you.
|
||||
Having nearly instant feedback enables you to have your creativity flow without waiting for long builds.
|
||||
|
||||
## Step 4. Have fun
|
||||
|
||||
The best way to learn something is to play with it.
|
||||
@@ -0,0 +1,50 @@
|
||||
+++
|
||||
title = "Image Style Guide"
|
||||
date = 2017-11-14T08:08:17-05:00
|
||||
tags = []
|
||||
categories = []
|
||||
+++
|
||||
|
||||
Veniam est eu adipisicing reprehenderit do sit sint elit sint. Tempor laborum ut dolore aliqua. Commodo eu qui sint magna veniam laborum. Ad cupidatat do proident ex veniam amet Lorem. Officia laboris aute fugiat id consequat culpa ullamco labore ea amet ad. Occaecat quis dolor commodo pariatur cillum et id id cupidatat officia.
|
||||
|
||||
Magna incididunt proident cupidatat cupidatat enim consectetur sunt. Ipsum velit aliqua ex ipsum qui labore magna. Ea nisi anim ad culpa Lorem occaecat ex cupidatat duis labore officia dolor.
|
||||
|
||||
{{< figure src="//via.placeholder.com/600x200" class="full" caption="Magna sunt ut ea quis aliqua cupidatat ut quis sit aliqua tempor duis." >}}
|
||||
|
||||
Aliqua minim esse velit est non. Ea do irure labore aliquip culpa ex ut sunt anim duis irure. Ex adipisicing deserunt do occaecat. Incididunt esse ea tempor fugiat magna.
|
||||
|
||||
Voluptate elit exercitation aliqua ut elit reprehenderit aliquip anim elit laborum laborum. Elit aute sint nisi labore irure in labore culpa. Fugiat velit fugiat ea reprehenderit. Sint minim amet occaecat eu labore reprehenderit pariatur nulla.
|
||||
|
||||
{{< figure src="//via.placeholder.com/600x300" class="mid" caption="Eu cupidatat ex qui do." >}}
|
||||
|
||||
In deserunt exercitation Lorem est nulla ullamco enim duis consequat tempor minim. Nostrud cillum ex dolore amet qui mollit do in aliquip consequat eiusmod est dolor officia. Exercitation quis cillum voluptate dolore cillum veniam minim voluptate ullamco voluptate reprehenderit deserunt elit. Et cillum sunt labore ad duis officia aute Lorem incididunt commodo ea.
|
||||
|
||||
Deserunt Lorem aliquip dolor et ut adipisicing nisi esse est dolore irure laborum. Excepteur dolor pariatur excepteur deserunt eiusmod laborum. Ad officia ea magna id ex. Laborum enim proident incididunt quis.
|
||||
|
||||

|
||||
|
||||
Elit culpa ad ex aute ullamco dolor anim do labore. Non ex do eiusmod elit occaecat. Adipisicing mollit commodo fugiat qui Lorem cupidatat laboris consectetur. Anim nostrud ullamco excepteur Lorem aliqua ullamco nisi.
|
||||
|
||||
Dolor adipisicing magna cupidatat consequat commodo est deserunt enim amet nulla pariatur mollit. Cupidatat officia veniam adipisicing laboris et ullamco consequat est nisi cupidatat. Quis id cillum excepteur consectetur aute excepteur ipsum magna. In ex pariatur nostrud ipsum aliqua nisi irure Lorem consectetur incididunt incididunt cillum. Fugiat ea Lorem velit voluptate cillum. Sunt incididunt proident nulla ad minim ullamco nostrud non commodo dolor enim cillum ullamco esse.
|
||||
|
||||

|
||||
|
||||
Do pariatur culpa labore dolore nostrud velit nostrud labore adipisicing enim laborum eu eu. Laborum nulla occaecat amet commodo ut velit. Incididunt et officia ex voluptate qui velit amet. Commodo consequat pariatur labore irure id commodo fugiat exercitation incididunt fugiat aliqua ipsum. Enim exercitation quis cillum irure duis nisi ullamco pariatur exercitation cillum amet nostrud aliquip. Adipisicing pariatur incididunt tempor sit pariatur aliquip aliqua pariatur. Eu occaecat fugiat aliqua consectetur velit incididunt nostrud enim.
|
||||
|
||||
Consectetur non dolore duis anim nostrud pariatur. Nisi ad pariatur est fugiat non occaecat excepteur ea amet esse. Id ullamco nisi anim ut eu reprehenderit irure ullamco. Do voluptate dolor est nostrud sit.
|
||||
|
||||
{{< figure src="//via.placeholder.com/300x400" class="float-right" caption="Eu cupidatat ex qui do." >}}
|
||||
|
||||
Irure anim officia nostrud ad veniam reprehenderit incididunt id elit eu id sint ea laboris. Irure esse sit dolore enim nulla consequat esse id esse. Anim consequat reprehenderit incididunt sit. Incididunt incididunt eu ullamco excepteur sit qui id reprehenderit cillum eiusmod velit elit adipisicing. Pariatur et cupidatat quis sint ipsum est non. Anim sit labore ut minim id sint eu incididunt exercitation laborum laborum anim.
|
||||
|
||||
Sit id et irure consectetur veniam do eiusmod. Exercitation veniam labore proident laborum commodo esse culpa laboris ex laboris fugiat. Sunt ut amet tempor eiusmod exercitation laboris in qui tempor mollit culpa mollit. Eu sint consequat consectetur laboris amet dolore do labore ipsum dolor ipsum fugiat. Qui deserunt cillum nostrud dolore tempor reprehenderit reprehenderit reprehenderit.
|
||||
|
||||
{{< figure src="//via.placeholder.com/300x400" class="float" caption="Eu cupidatat ex qui do." >}}
|
||||
|
||||
Enim anim veniam ea officia. Duis fugiat fugiat exercitation voluptate labore est est aliqua dolor incididunt eiusmod veniam. Reprehenderit sunt aute veniam anim qui sunt irure officia duis non aute labore. Aliqua reprehenderit pariatur reprehenderit voluptate excepteur ut amet sit ut duis. Ea exercitation ex ad ut dolor minim.
|
||||
|
||||
Lorem nostrud aute cillum ut veniam deserunt. Est commodo et id ea. Proident incididunt consequat deserunt sit do est duis. Do sint ullamco sunt cillum duis.
|
||||
|
||||
Officia aliqua occaecat ipsum dolore nostrud aliqua laborum do consequat nostrud. Dolor amet non ad excepteur duis Lorem aliqua aute. Lorem reprehenderit do sit minim magna nostrud Lorem officia duis.
|
||||
|
||||
Ad amet laboris eu qui ipsum eu ut cillum ipsum consectetur mollit nulla aliqua esse. Adipisicing et ad anim ipsum aliqua duis eiusmod. Quis ad in ea eu amet cupidatat sint eiusmod ullamco. Ullamco aliquip Lorem aliqua labore ipsum. Consectetur magna nostrud mollit nulla nostrud duis ipsum. Officia ad nulla culpa exercitation exercitation exercitation duis ipsum laboris.
|
||||
@@ -0,0 +1,151 @@
|
||||
---
|
||||
date: 2014-03-10
|
||||
title: Migrate to Hugo from Jekyll
|
||||
images: []
|
||||
---
|
||||
|
||||
## Move static content to `static`
|
||||
Jekyll has a rule that any directory not starting with `_` will be copied as-is to the `_site` output. Hugo keeps all static content under `static`. You should therefore move it all there.
|
||||
With Jekyll, something that looked like
|
||||
|
||||
▾ <root>/
|
||||
▾ images/
|
||||
logo.png
|
||||
|
||||
should become
|
||||
|
||||
▾ <root>/
|
||||
▾ static/
|
||||
▾ images/
|
||||
logo.png
|
||||
|
||||
Additionally, you'll want any files that should reside at the root (such as `CNAME`) to be moved to `static`.
|
||||
|
||||
## Create your Hugo configuration file
|
||||
Hugo can read your configuration as JSON, YAML or TOML. Hugo supports parameters custom configuration too. Refer to the [Hugo configuration documentation](/overview/configuration/) for details.
|
||||
|
||||
## Set your configuration publish folder to `_site`
|
||||
The default is for Jekyll to publish to `_site` and for Hugo to publish to `public`. If, like me, you have [`_site` mapped to a git submodule on the `gh-pages` branch](//blog.blindgaenger.net/generate_github_pages_in_a_submodule.html), you'll want to do one of two alternatives:
|
||||
|
||||
1. Change your submodule to point to map `gh-pages` to public instead of `_site` (recommended).
|
||||
|
||||
git submodule deinit _site
|
||||
git rm _site
|
||||
git submodule add -b gh-pages git@github.com:your-username/your-repo.git public
|
||||
|
||||
2. Or, change the Hugo configuration to use `_site` instead of `public`.
|
||||
|
||||
{
|
||||
..
|
||||
"publishdir": "_site",
|
||||
..
|
||||
}
|
||||
|
||||
## Convert Jekyll templates to Hugo templates
|
||||
That's the bulk of the work right here. The documentation is your friend. You should refer to [Jekyll's template documentation](//jekyllrb.com/docs/templates/) if you need to refresh your memory on how you built your blog and [Hugo's template](/layout/templates/) to learn Hugo's way.
|
||||
|
||||
As a single reference data point, converting my templates for [heyitsalex.net](//heyitsalex.net/) took me no more than a few hours.
|
||||
|
||||
## Convert Jekyll plugins to Hugo shortcodes
|
||||
Jekyll has [plugins](//jekyllrb.com/docs/plugins/); Hugo has [shortcodes](/doc/shortcodes/). It's fairly trivial to do a port.
|
||||
|
||||
### Implementation
|
||||
As an example, I was using a custom [`image_tag`](//github.com/alexandre-normand/alexandre-normand/blob/74bb12036a71334fdb7dba84e073382fc06908ec/_plugins/image_tag.rb) plugin to generate figures with caption when running Jekyll. As I read about shortcodes, I found Hugo had a nice built-in shortcode that does exactly the same thing.
|
||||
|
||||
Jekyll's plugin:
|
||||
|
||||
module Jekyll
|
||||
class ImageTag < Liquid::Tag
|
||||
@url = nil
|
||||
@caption = nil
|
||||
@class = nil
|
||||
@link = nil
|
||||
// Patterns
|
||||
IMAGE_URL_WITH_CLASS_AND_CAPTION =
|
||||
IMAGE_URL_WITH_CLASS_AND_CAPTION_AND_LINK = /(\w+)(\s+)((https?:\/\/|\/)(\S+))(\s+)"(.*?)"(\s+)->((https?:\/\/|\/)(\S+))(\s*)/i
|
||||
IMAGE_URL_WITH_CAPTION = /((https?:\/\/|\/)(\S+))(\s+)"(.*?)"/i
|
||||
IMAGE_URL_WITH_CLASS = /(\w+)(\s+)((https?:\/\/|\/)(\S+))/i
|
||||
IMAGE_URL = /((https?:\/\/|\/)(\S+))/i
|
||||
def initialize(tag_name, markup, tokens)
|
||||
super
|
||||
if markup =~ IMAGE_URL_WITH_CLASS_AND_CAPTION_AND_LINK
|
||||
@class = $1
|
||||
@url = $3
|
||||
@caption = $7
|
||||
@link = $9
|
||||
elsif markup =~ IMAGE_URL_WITH_CLASS_AND_CAPTION
|
||||
@class = $1
|
||||
@url = $3
|
||||
@caption = $7
|
||||
elsif markup =~ IMAGE_URL_WITH_CAPTION
|
||||
@url = $1
|
||||
@caption = $5
|
||||
elsif markup =~ IMAGE_URL_WITH_CLASS
|
||||
@class = $1
|
||||
@url = $3
|
||||
elsif markup =~ IMAGE_URL
|
||||
@url = $1
|
||||
end
|
||||
end
|
||||
def render(context)
|
||||
if @class
|
||||
source = "<figure class='#{@class}'>"
|
||||
else
|
||||
source = "<figure>"
|
||||
end
|
||||
if @link
|
||||
source += "<a href=\"#{@link}\">"
|
||||
end
|
||||
source += "<img src=\"#{@url}\">"
|
||||
if @link
|
||||
source += "</a>"
|
||||
end
|
||||
source += "<figcaption>#{@caption}</figcaption>" if @caption
|
||||
source += "</figure>"
|
||||
source
|
||||
end
|
||||
end
|
||||
end
|
||||
Liquid::Template.register_tag('image', Jekyll::ImageTag)
|
||||
|
||||
is written as this Hugo shortcode:
|
||||
|
||||
<!-- image -->
|
||||
<figure {{ with .Get "class" }}class="{{.}}"{{ end }}>
|
||||
{{ with .Get "link"}}<a href="{{.}}">{{ end }}
|
||||
<img src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}"{{ end }} />
|
||||
{{ if .Get "link"}}</a>{{ end }}
|
||||
{{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
|
||||
<figcaption>{{ if isset .Params "title" }}
|
||||
{{ .Get "title" }}{{ end }}
|
||||
{{ if or (.Get "caption") (.Get "attr")}}<p>
|
||||
{{ .Get "caption" }}
|
||||
{{ with .Get "attrlink"}}<a href="{{.}}"> {{ end }}
|
||||
{{ .Get "attr" }}
|
||||
{{ if .Get "attrlink"}}</a> {{ end }}
|
||||
</p> {{ end }}
|
||||
</figcaption>
|
||||
{{ end }}
|
||||
</figure>
|
||||
<!-- image -->
|
||||
|
||||
### Usage
|
||||
I simply changed:
|
||||
|
||||
{% image full http://farm5.staticflickr.com/4136/4829260124_57712e570a_o_d.jpg "One of my favorite touristy-type photos. I secretly waited for the good light while we were "having fun" and took this. Only regret: a stupid pole in the top-left corner of the frame I had to clumsily get rid of at post-processing." ->http://www.flickr.com/photos/alexnormand/4829260124/in/set-72157624547713078/ %}
|
||||
|
||||
to this (this example uses a slightly extended version named `fig`, different than the built-in `figure`):
|
||||
|
||||
{{%/* fig class="full" src="http://farm5.staticflickr.com/4136/4829260124_57712e570a_o_d.jpg" title="One of my favorite touristy-type photos. I secretly waited for the good light while we were having fun and took this. Only regret: a stupid pole in the top-left corner of the frame I had to clumsily get rid of at post-processing." link="http://www.flickr.com/photos/alexnormand/4829260124/in/set-72157624547713078/" */%}}
|
||||
|
||||
As a bonus, the shortcode named parameters are, arguably, more readable.
|
||||
|
||||
## Finishing touches
|
||||
### Fix content
|
||||
Depending on the amount of customization that was done with each post with Jekyll, this step will require more or less effort. There are no hard and fast rules here except that `hugo server --watch` is your friend. Test your changes and fix errors as needed.
|
||||
|
||||
### Clean up
|
||||
You'll want to remove the Jekyll configuration at this point. If you have anything else that isn't used, delete it.
|
||||
|
||||
## A practical example in a diff
|
||||
[Hey, it's Alex](//heyitsalex.net/) was migrated in less than a _father-with-kids day_ from Jekyll to Hugo. You can see all the changes (and screw-ups) by looking at this [diff](//github.com/alexandre-normand/alexandre-normand/compare/869d69435bd2665c3fbf5b5c78d4c22759d7613a...b7f6605b1265e83b4b81495423294208cc74d610).
|
||||
200
themes/alpha-church/exampleSite/content/posts/style-guide.md
Normal file
200
themes/alpha-church/exampleSite/content/posts/style-guide.md
Normal file
@@ -0,0 +1,200 @@
|
||||
+++
|
||||
title = "Style Guide"
|
||||
date = 2017-11-14T10:57:55-05:00
|
||||
tags = []
|
||||
categories = []
|
||||
+++
|
||||
|
||||
# Headings
|
||||
|
||||
# Heading 1
|
||||
|
||||
## Heading 2
|
||||
|
||||
### Heading 3
|
||||
|
||||
#### Heading 4
|
||||
|
||||
##### Heading 5
|
||||
|
||||
###### Heading 6
|
||||
|
||||
* * *
|
||||
|
||||
# Headings with Text
|
||||
|
||||
# Heading 1
|
||||
|
||||
Lorem ipsum dolor sit amet, adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl.
|
||||
|
||||
## Heading 2
|
||||
|
||||
Lorem ipsum dolor sit amet, adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl.
|
||||
|
||||
### Heading 3
|
||||
|
||||
Lorem ipsum dolor sit amet, adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl.
|
||||
|
||||
#### Heading 4
|
||||
|
||||
Lorem ipsum dolor sit amet, adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl.
|
||||
|
||||
##### Heading 5
|
||||
|
||||
Lorem ipsum dolor sit amet, adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl.
|
||||
|
||||
###### Heading 6
|
||||
|
||||
Lorem ipsum dolor sit amet, adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl.
|
||||
|
||||
* * *
|
||||
|
||||
# Block Elements
|
||||
|
||||
## Paragraphs and Images
|
||||
|
||||
Moinsen! Der kess 🦄 Lichtspieltheater. Kittchen und Schwedenfilm krakelen blümerant Narr. Das flügge Personenvereinzelungsanlage dengeln. Kleintierzuchtverein und Naschkatze meucheln adrett Himmelfahrtskommando. Der gebeutelt Personenvereinzelungsanlage. Der butterweich Scharlatan. Der gemach Kokolores. Haderlump und Waldschrat abkupfern hanebüchen Lump. Der hochgestochen Stümper. Das Trinkhalle abkupfern der bierernst Eisbein. Die Lametta stibitzen der töricht Prahlhans. Die altbacken Himmelfahrtskommando. Kerbholz und Schürzenjäger erquicken garstig Schlachtschüssel. Jungfer und Herrengedeck auftakeln pompös Schnitzel. Ach du liebes Lottchen!
|
||||
|
||||
Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. Praesent mattis, massa quis luctus fermentum, turpis mi volutpat justo, eu volutpat enim diam eget metus. Maecenas ornare tortor.
|
||||
|
||||

|
||||
|
||||
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem.
|
||||
|
||||
## Blockquote
|
||||
|
||||
This is a standard paragraph. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
|
||||
|
||||
> "**This is a blockquote**. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl."
|
||||
|
||||
This is a standard paragraph. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
|
||||
|
||||
*Note: the [Figure-Figcaption](//html5doctor.com/the-figure-figcaption-elements/) and [Details-Summary](//html5doctor.com/the-details-and-summary-elements/) elements are not currently supported in markdown.*
|
||||
|
||||
* * *
|
||||
|
||||
# Text Elements
|
||||
|
||||
The [a element](#) and [external a element](//example.com) examples
|
||||
|
||||
The <abbr>abbr element</abbr> and an <abbr title="Abbreviation">abbr</abbr> element with title examples
|
||||
|
||||
The <acronym title="A Cowboy Ran One New York Marathon">ACRONYM</acronym> element example
|
||||
|
||||
The **b element** example
|
||||
|
||||
The <cite>cite element</cite> example
|
||||
|
||||
The `code element` example
|
||||
|
||||
The <data value="3967381398">data element</data> example
|
||||
|
||||
The ~~del element~~ example
|
||||
|
||||
The <dfn>dfn element</dfn> and <dfn title="Title text">dfn element with title</dfn> examples
|
||||
|
||||
The _em element_ example
|
||||
|
||||
The _i element_ example
|
||||
|
||||
The <ins>ins element</ins> example
|
||||
|
||||
The <kbd>kbd element</kbd> example
|
||||
|
||||
The <mark>mark element</mark> example
|
||||
|
||||
The <q>q element</q> example
|
||||
|
||||
The <q>q element <q>inside</q> a q element</q> example
|
||||
|
||||
The <s>s element</s> example
|
||||
|
||||
The <samp>samp element</samp> example
|
||||
|
||||
The <small>small element</small> example
|
||||
|
||||
The <span>span element</span> example
|
||||
|
||||
The **strong element** example
|
||||
|
||||
The <sub>sub element</sub> example
|
||||
|
||||
The <sup>sup element</sup> example
|
||||
|
||||
The <time datetime="2005-05-15 19:00">time element</time> example
|
||||
|
||||
|
||||
The <u>u element</u> example
|
||||
|
||||
The <var>var element</var> example
|
||||
|
||||
* * *
|
||||
|
||||
# Monospace / Preformatted
|
||||
|
||||
Code block wrapped in "pre" and "code" tags:
|
||||
|
||||
```javascript
|
||||
// Loop through Divs using Javascript.
|
||||
var divs = document.querySelectorAll('div'), i;
|
||||
|
||||
for (i = 0; i < divs.length; ++i) {
|
||||
divs[i].style.color = "green";
|
||||
}
|
||||
```
|
||||
|
||||
Monospace Text wrapped in "pre" tags:
|
||||
|
||||
<pre>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl.</pre>
|
||||
|
||||
* * *
|
||||
|
||||
# List Types
|
||||
|
||||
## Ordered List
|
||||
|
||||
1. List Item 1
|
||||
2. List Item 2
|
||||
3. List Item 3
|
||||
1. List Item 3.1
|
||||
2. List Item 3.2
|
||||
1. List Item 3.2.1
|
||||
2. List Item 3.2 2
|
||||
3. List Item 3.3
|
||||
4. List Item 4
|
||||
|
||||
## Unordered List
|
||||
|
||||
* List Item 1
|
||||
* List Item 2
|
||||
* List Item 3
|
||||
* List Item 3.1
|
||||
* List Item 3.2
|
||||
* List Item 3.2.1
|
||||
* List Item 3.2 2
|
||||
* List Item 3.3
|
||||
* List Item 4
|
||||
|
||||
## Definition List
|
||||
|
||||
Definition Term 1
|
||||
: Definition Description 1
|
||||
|
||||
Definition Term 2
|
||||
: Definition Description 2
|
||||
|
||||
* * *
|
||||
|
||||
# Tables
|
||||
|
||||
| Table Header 1 | Table Header 2 | Table Header 3 |
|
||||
| -------------- | -------------- | -------------- |
|
||||
| Division 1 | Division 2 | Division 3 |
|
||||
| Division 1 | Division 2 | Division 3 |
|
||||
| Division 1 | Division 2 | Division 3 |
|
||||
|
||||
* * *
|
||||
|
||||
# Media and Form Elements
|
||||
|
||||
The remaining sections contain elements that cannot be represented in markdown. Please consult [the HTML version](https://github.com/bryanbraun/poor-mans-styleguide/blob/gh-pages/index.html), to see these elements.
|
||||
@@ -0,0 +1,14 @@
|
||||
---
|
||||
title: "John Calvin: Institutes 2 11"
|
||||
passage: "John 3:16"
|
||||
date: 2018-05-03T20:12:30+10:00
|
||||
audio: ["//ia801403.us.archive.org/29/items/institutes_christian_religion2_1003_librivox/institutesofchristianreligion2_11_calvin_64kb.mp3"]
|
||||
audio_duration: 22:23
|
||||
audio_size: 10748346
|
||||
images: []
|
||||
preachers: ["John Calvin"]
|
||||
series: ["Test"]
|
||||
tags: ["theology","redemption", "historical"]
|
||||
draft: false
|
||||
---
|
||||
Public Domain recording from [librivox](https://librivox.org/institutes-of-the-christian-religion-book-two-by-john-calvin/)
|
||||
@@ -0,0 +1,14 @@
|
||||
---
|
||||
title: "Word of God I"
|
||||
passage: "Table Talk"
|
||||
date: 2018-05-11T09:06:46+10:00
|
||||
audio: ["//www.archive.org/download/table_talk_martin_luther_1801_librivox/tabletalk_05_luther_128kb.mp3"]
|
||||
audio_duration: 14:39
|
||||
audio_size: 14076118
|
||||
preachers: ["Martin Luther"]
|
||||
images: ["/img/freely-20445.jpg"]
|
||||
series: ["Test"]
|
||||
tags: ["bible","scripture", "historical"]
|
||||
draft: false
|
||||
---
|
||||
Recording by Gillian Hedrie from [Librivox](https://librivox.org/selections-from-the-table-talk-of-martin-luther-by-martin-luther/)
|
||||
@@ -0,0 +1,2 @@
|
||||
/* breakpoints.js v1.0 | @ajlkn | MIT licensed */
|
||||
var breakpoints=function(){"use strict";function e(e){t.init(e)}var t={list:null,media:{},events:[],init:function(e){t.list=e,window.addEventListener("resize",t.poll),window.addEventListener("orientationchange",t.poll),window.addEventListener("load",t.poll),window.addEventListener("fullscreenchange",t.poll)},active:function(e){var n,a,s,i,r,d,c;if(!(e in t.media)){if(">="==e.substr(0,2)?(a="gte",n=e.substr(2)):"<="==e.substr(0,2)?(a="lte",n=e.substr(2)):">"==e.substr(0,1)?(a="gt",n=e.substr(1)):"<"==e.substr(0,1)?(a="lt",n=e.substr(1)):"!"==e.substr(0,1)?(a="not",n=e.substr(1)):(a="eq",n=e),n&&n in t.list)if(i=t.list[n],Array.isArray(i)){if(r=parseInt(i[0]),d=parseInt(i[1]),isNaN(r)){if(isNaN(d))return;c=i[1].substr(String(d).length)}else c=i[0].substr(String(r).length);if(isNaN(r))switch(a){case"gte":s="screen";break;case"lte":s="screen and (max-width: "+d+c+")";break;case"gt":s="screen and (min-width: "+(d+1)+c+")";break;case"lt":s="screen and (max-width: -1px)";break;case"not":s="screen and (min-width: "+(d+1)+c+")";break;default:s="screen and (max-width: "+d+c+")"}else if(isNaN(d))switch(a){case"gte":s="screen and (min-width: "+r+c+")";break;case"lte":s="screen";break;case"gt":s="screen and (max-width: -1px)";break;case"lt":s="screen and (max-width: "+(r-1)+c+")";break;case"not":s="screen and (max-width: "+(r-1)+c+")";break;default:s="screen and (min-width: "+r+c+")"}else switch(a){case"gte":s="screen and (min-width: "+r+c+")";break;case"lte":s="screen and (max-width: "+d+c+")";break;case"gt":s="screen and (min-width: "+(d+1)+c+")";break;case"lt":s="screen and (max-width: "+(r-1)+c+")";break;case"not":s="screen and (max-width: "+(r-1)+c+"), screen and (min-width: "+(d+1)+c+")";break;default:s="screen and (min-width: "+r+c+") and (max-width: "+d+c+")"}}else s="("==i.charAt(0)?"screen and "+i:i;t.media[e]=!!s&&s}return t.media[e]!==!1&&window.matchMedia(t.media[e]).matches},on:function(e,n){t.events.push({query:e,handler:n,state:!1}),t.active(e)&&n()},poll:function(){var e,n;for(e=0;e<t.events.length;e++)n=t.events[e],t.active(n.query)?n.state||(n.state=!0,n.handler()):n.state&&(n.state=!1)}};return e._=t,e.on=function(e,n){t.on(e,n)},e.active=function(e){return t.active(e)},e}();!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.breakpoints=t()}(this,function(){return breakpoints});
|
||||
@@ -0,0 +1 @@
|
||||
{"Target":"js/breakpoints.min.309febcd6d6e0cf092201532215f03a6a9f30b30f26203272a4861d704e7cd52.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-MJ/rzW1uDPCSIBUyIV8DpqnzCzDyYgMnKkhh1wTnzVI="}}
|
||||
@@ -0,0 +1,2 @@
|
||||
/* browser.js v1.0 | @ajlkn | MIT licensed */
|
||||
var browser=function(){"use strict";var e={name:null,version:null,os:null,osVersion:null,touch:null,mobile:null,_canUse:null,canUse:function(n){e._canUse||(e._canUse=document.createElement("div"));var o=e._canUse.style,r=n.charAt(0).toUpperCase()+n.slice(1);return n in o||"Moz"+r in o||"Webkit"+r in o||"O"+r in o||"ms"+r in o},init:function(){var n,o,r,i,t=navigator.userAgent;for(n="other",o=0,r=[["firefox",/Firefox\/([0-9\.]+)/],["bb",/BlackBerry.+Version\/([0-9\.]+)/],["bb",/BB[0-9]+.+Version\/([0-9\.]+)/],["opera",/OPR\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)/],["edge",/Edge\/([0-9\.]+)/],["safari",/Version\/([0-9\.]+).+Safari/],["chrome",/Chrome\/([0-9\.]+)/],["ie",/MSIE ([0-9]+)/],["ie",/Trident\/.+rv:([0-9]+)/]],i=0;i<r.length;i++)if(t.match(r[i][1])){n=r[i][0],o=parseFloat(RegExp.$1);break}for(e.name=n,e.version=o,n="other",o=0,r=[["ios",/([0-9_]+) like Mac OS X/,function(e){return e.replace("_",".").replace("_","")}],["ios",/CPU like Mac OS X/,function(e){return 0}],["wp",/Windows Phone ([0-9\.]+)/,null],["android",/Android ([0-9\.]+)/,null],["mac",/Macintosh.+Mac OS X ([0-9_]+)/,function(e){return e.replace("_",".").replace("_","")}],["windows",/Windows NT ([0-9\.]+)/,null],["bb",/BlackBerry.+Version\/([0-9\.]+)/,null],["bb",/BB[0-9]+.+Version\/([0-9\.]+)/,null],["linux",/Linux/,null],["bsd",/BSD/,null],["unix",/X11/,null]],i=0;i<r.length;i++)if(t.match(r[i][1])){n=r[i][0],o=parseFloat(r[i][2]?r[i][2](RegExp.$1):RegExp.$1);break}e.os=n,e.osVersion=o,e.touch="wp"==e.os?navigator.msMaxTouchPoints>0:!!("ontouchstart"in window),e.mobile="wp"==e.os||"android"==e.os||"ios"==e.os||"bb"==e.os}};return e.init(),e}();!function(e,n){"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?module.exports=n():e.browser=n()}(this,function(){return browser});
|
||||
@@ -0,0 +1 @@
|
||||
{"Target":"js/browser.min.87910d5ed0053d90caf83230a2f1811d8679815da01f7bdec7548e776d7f04c4.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-h5ENXtAFPZDK+DIwovGBHYZ5gV2gH3vex1SOd21/BMQ="}}
|
||||
@@ -0,0 +1,12 @@
|
||||
(function(l,f){function m(){var a=e.elements;return "string"==typeof a?a.split(" "):a;}
|
||||
function i(a){var b=n[a[o]];b||((b={}),h++,(a[o]=h),(n[h]=b));return b;}
|
||||
function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b;}
|
||||
function t(a,b){if(!b.cache)
|
||||
(b.cache={}),(b.createElem=a.createElement),(b.createFrag=a.createDocumentFragment),(b.frag=b.createFrag());a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b);};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+
|
||||
m().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return 'c("'+a+'")';})+
|
||||
");return n}")(e,b.frag);}
|
||||
function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x<style>article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}</style>";c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c;}
|
||||
g||t(a,b);return a;}
|
||||
var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="<xyz></xyz>";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement;}
|
||||
g=b;}catch(d){g=j=!0;}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section summary time video",version:"3.6.2",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d<h;d++)
|
||||
c.createElement(e[d]);return c;}};l.html5=e;q(f);})(this,document);
|
||||
@@ -0,0 +1 @@
|
||||
{"Target":"js/ie/html5shiv.min.js","MediaType":"application/javascript","Data":{}}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"Target":"js/jquery.dropotron.min.4b0a4c1a278f32f74c140865e40671b5225fcb317ccde6a7ac568b7c1c1acbe0.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-SwpMGiePMvdMFAhl5AZxtSJfyzF8zeanrFaLfBway+A="}}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"Target":"js/jquery.min.0925e8ad7bd971391a8b1e98be8e87a6971919eb5b60c196485941c3c1df089a.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="}}
|
||||
@@ -0,0 +1,2 @@
|
||||
/* jquery.scrollex v0.2.1 | (c) @ajlkn | github.com/ajlkn/jquery.scrollex | MIT licensed */
|
||||
!function(t){function e(t,e,n){return"string"==typeof t&&("%"==t.slice(-1)?t=parseInt(t.substring(0,t.length-1))/100*e:"vh"==t.slice(-2)?t=parseInt(t.substring(0,t.length-2))/100*n:"px"==t.slice(-2)&&(t=parseInt(t.substring(0,t.length-2)))),t}var n=t(window),i=1,o={};n.on("scroll",function(){var e=n.scrollTop();t.map(o,function(t){window.clearTimeout(t.timeoutId),t.timeoutId=window.setTimeout(function(){t.handler(e)},t.options.delay)})}).on("load",function(){n.trigger("scroll")}),jQuery.fn.scrollex=function(l){var s=t(this);if(0==this.length)return s;if(this.length>1){for(var r=0;r<this.length;r++)t(this[r]).scrollex(l);return s}if(s.data("_scrollexId"))return s;var a,u,h,c,p;switch(a=i++,u=jQuery.extend({top:0,bottom:0,delay:0,mode:"default",enter:null,leave:null,initialize:null,terminate:null,scroll:null},l),u.mode){case"top":h=function(t,e,n,i,o){return t>=i&&o>=t};break;case"bottom":h=function(t,e,n,i,o){return n>=i&&o>=n};break;case"middle":h=function(t,e,n,i,o){return e>=i&&o>=e};break;case"top-only":h=function(t,e,n,i,o){return i>=t&&n>=i};break;case"bottom-only":h=function(t,e,n,i,o){return n>=o&&o>=t};break;default:case"default":h=function(t,e,n,i,o){return n>=i&&o>=t}}return c=function(t){var i,o,l,s,r,a,u=this.state,h=!1,c=this.$element.offset();i=n.height(),o=t+i/2,l=t+i,s=this.$element.outerHeight(),r=c.top+e(this.options.top,s,i),a=c.top+s-e(this.options.bottom,s,i),h=this.test(t,o,l,r,a),h!=u&&(this.state=h,h?this.options.enter&&this.options.enter.apply(this.element):this.options.leave&&this.options.leave.apply(this.element)),this.options.scroll&&this.options.scroll.apply(this.element,[(o-r)/(a-r)])},p={id:a,options:u,test:h,handler:c,state:null,element:this,$element:s,timeoutId:null},o[a]=p,s.data("_scrollexId",p.id),p.options.initialize&&p.options.initialize.apply(this),s},jQuery.fn.unscrollex=function(){var e=t(this);if(0==this.length)return e;if(this.length>1){for(var n=0;n<this.length;n++)t(this[n]).unscrollex();return e}var i,l;return(i=e.data("_scrollexId"))?(l=o[i],window.clearTimeout(l.timeoutId),delete o[i],e.removeData("_scrollexId"),l.options.terminate&&l.options.terminate.apply(this),e):e}}(jQuery);
|
||||
@@ -0,0 +1 @@
|
||||
{"Target":"js/jquery.scrollex.min.fc25b75fb3fc8b42756413be387e0d7a602813125283d2384551961d73ea784e.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-/CW3X7P8i0J1ZBO+OH4NemAoExJSg9I4RVGWHXPqeE4="}}
|
||||
@@ -0,0 +1,7 @@
|
||||
(function($){var $window=$(window),$body=$('body'),$header=$('#header'),$banner=$('#banner');breakpoints({wide:('1281px','1680px'),normal:('981px','1280px'),narrow:('737px','980px'),narrower:('737px','840px'),mobile:('481px','736px'),mobilep:(null,'480px')});$window.on('load',function(){window.setTimeout(function(){$body.removeClass('is-preload');},100);});$('#nav > ul').dropotron({alignment:'right'});$('<div id="navButton">'+
|
||||
'<a href="#navPanel" class="toggle"></a>'+
|
||||
'</div>').appendTo($body);$('<div id="navPanel">'+
|
||||
'<nav>'+
|
||||
$('#nav').navList()+
|
||||
'</nav>'+
|
||||
'</div>').appendTo($body).panel({delay:500,hideOnClick:true,hideOnSwipe:true,resetScroll:true,resetForms:true,side:'left',target:$body,visibleClass:'navPanel-visible'});if(!browser.mobile&&$header.hasClass('alt')&&$banner.length>0){$window.on('load',function(){$banner.scrollex({bottom:$header.outerHeight(),terminate:function(){$header.removeClass('alt');},enter:function(){$header.addClass('alt reveal');},leave:function(){$header.removeClass('alt');}});});}})(jQuery);
|
||||
@@ -0,0 +1 @@
|
||||
{"Target":"js/main.min.91fd6e21c388e14b1d3accc4309ba0d965ee9eecde0e67c81e309fc54b69c8be.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-kf1uIcOI4UsdOszEMJug2WXunuzeDmfIHjCfxUtpyL4="}}
|
||||
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){if($("#player").length){const player=new Plyr('#player',{settings:['speed']});}});
|
||||
@@ -0,0 +1 @@
|
||||
{"Target":"js/plyr.init.min.02b821849a4e3b635e8cf24e1e4f65e2d053f18cf3efff35b890e621154e9ae0.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-ArghhJpOO2NejPJOHk9l4tBT8Yzz7/81uJDmIRVOmuA="}}
|
||||
@@ -0,0 +1,49 @@
|
||||
(function($){$.fn.navList=function(){var $this=$(this);$a=$this.find('a'),b=[];$a.each(function(){var $this=$(this),indent=Math.max(0,$this.parents('li').length-1),href=$this.attr('href'),target=$this.attr('target');b.push('<a '+
|
||||
'class="link depth-'+indent+'"'+
|
||||
((typeof target!=='undefined'&&target!='')?' target="'+target+'"':'')+
|
||||
((typeof href!=='undefined'&&href!='')?' href="'+href+'"':'')+
|
||||
'>'+
|
||||
'<span class="indent-'+indent+'"></span>'+
|
||||
$this.text()+
|
||||
'</a>');});return b.join('');};$.fn.panel=function(userConfig){if(this.length==0)
|
||||
return $this;if(this.length>1){for(var i=0;i<this.length;i++)
|
||||
$(this[i]).panel(userConfig);return $this;}
|
||||
var $this=$(this),$body=$('body'),$window=$(window),id=$this.attr('id'),config;config=$.extend({delay:0,hideOnClick:false,hideOnEscape:false,hideOnSwipe:false,resetScroll:false,resetForms:false,side:null,target:$this,visibleClass:'visible'},userConfig);if(typeof config.target!='jQuery')
|
||||
config.target=$(config.target);$this._hide=function(event){if(!config.target.hasClass(config.visibleClass))
|
||||
return;if(event){event.preventDefault();event.stopPropagation();}
|
||||
config.target.removeClass(config.visibleClass);window.setTimeout(function(){if(config.resetScroll)
|
||||
$this.scrollTop(0);if(config.resetForms)
|
||||
$this.find('form').each(function(){this.reset();});},config.delay);};$this.css('-ms-overflow-style','-ms-autohiding-scrollbar').css('-webkit-overflow-scrolling','touch');if(config.hideOnClick){$this.find('a').css('-webkit-tap-highlight-color','rgba(0,0,0,0)');$this.on('click','a',function(event){var $a=$(this),href=$a.attr('href'),target=$a.attr('target');if(!href||href=='#'||href==''||href=='#'+id)
|
||||
return;event.preventDefault();event.stopPropagation();$this._hide();window.setTimeout(function(){if(target=='_blank')
|
||||
window.open(href);else
|
||||
window.location.href=href;},config.delay+10);});}
|
||||
$this.on('touchstart',function(event){$this.touchPosX=event.originalEvent.touches[0].pageX;$this.touchPosY=event.originalEvent.touches[0].pageY;})
|
||||
$this.on('touchmove',function(event){if($this.touchPosX===null||$this.touchPosY===null)
|
||||
return;var diffX=$this.touchPosX-event.originalEvent.touches[0].pageX,diffY=$this.touchPosY-event.originalEvent.touches[0].pageY,th=$this.outerHeight(),ts=($this.get(0).scrollHeight-$this.scrollTop());if(config.hideOnSwipe){var result=false,boundary=20,delta=50;switch(config.side){case 'left':result=(diffY<boundary&&diffY>(-1*boundary))&&(diffX>delta);break;case 'right':result=(diffY<boundary&&diffY>(-1*boundary))&&(diffX<(-1*delta));break;case 'top':result=(diffX<boundary&&diffX>(-1*boundary))&&(diffY>delta);break;case 'bottom':result=(diffX<boundary&&diffX>(-1*boundary))&&(diffY<(-1*delta));break;default:break;}
|
||||
if(result){$this.touchPosX=null;$this.touchPosY=null;$this._hide();return false;}}
|
||||
if(($this.scrollTop()<0&&diffY<0)||(ts>(th-2)&&ts<(th+2)&&diffY>0)){event.preventDefault();event.stopPropagation();}});$this.on('click touchend touchstart touchmove',function(event){event.stopPropagation();});$this.on('click','a[href="#'+id+'"]',function(event){event.preventDefault();event.stopPropagation();config.target.removeClass(config.visibleClass);});$body.on('click touchend',function(event){$this._hide(event);});$body.on('click','a[href="#'+id+'"]',function(event){event.preventDefault();event.stopPropagation();config.target.toggleClass(config.visibleClass);});if(config.hideOnEscape)
|
||||
$window.on('keydown',function(event){if(event.keyCode==27)
|
||||
$this._hide(event);});return $this;};$.fn.placeholder=function(){if(typeof(document.createElement('input')).placeholder!='undefined')
|
||||
return $(this);if(this.length==0)
|
||||
return $this;if(this.length>1){for(var i=0;i<this.length;i++)
|
||||
$(this[i]).placeholder();return $this;}
|
||||
var $this=$(this);$this.find('input[type=text],textarea').each(function(){var i=$(this);if(i.val()==''||i.val()==i.attr('placeholder'))
|
||||
i.addClass('polyfill-placeholder').val(i.attr('placeholder'));}).on('blur',function(){var i=$(this);if(i.attr('name').match(/-polyfill-field$/))
|
||||
return;if(i.val()=='')
|
||||
i.addClass('polyfill-placeholder').val(i.attr('placeholder'));}).on('focus',function(){var i=$(this);if(i.attr('name').match(/-polyfill-field$/))
|
||||
return;if(i.val()==i.attr('placeholder'))
|
||||
i.removeClass('polyfill-placeholder').val('');});$this.find('input[type=password]').each(function(){var i=$(this);var x=$($('<div>').append(i.clone()).remove().html().replace(/type="password"/i,'type="text"').replace(/type=password/i,'type=text'));if(i.attr('id')!='')
|
||||
x.attr('id',i.attr('id')+'-polyfill-field');if(i.attr('name')!='')
|
||||
x.attr('name',i.attr('name')+'-polyfill-field');x.addClass('polyfill-placeholder').val(x.attr('placeholder')).insertAfter(i);if(i.val()=='')
|
||||
i.hide();else
|
||||
x.hide();i.on('blur',function(event){event.preventDefault();var x=i.parent().find('input[name='+i.attr('name')+'-polyfill-field]');if(i.val()==''){i.hide();x.show();}});x.on('focus',function(event){event.preventDefault();var i=x.parent().find('input[name='+x.attr('name').replace('-polyfill-field','')+']');x.hide();i.show().focus();}).on('keypress',function(event){event.preventDefault();x.val('');});});$this.on('submit',function(){$this.find('input[type=text],input[type=password],textarea').each(function(event){var i=$(this);if(i.attr('name').match(/-polyfill-field$/))
|
||||
i.attr('name','');if(i.val()==i.attr('placeholder')){i.removeClass('polyfill-placeholder');i.val('');}});}).on('reset',function(event){event.preventDefault();$this.find('select').val($('option:first').val());$this.find('input,textarea').each(function(){var i=$(this),x;i.removeClass('polyfill-placeholder');switch(this.type){case 'submit':case 'reset':break;case 'password':i.val(i.attr('defaultValue'));x=i.parent().find('input[name='+i.attr('name')+'-polyfill-field]');if(i.val()==''){i.hide();x.show();}
|
||||
else{i.show();x.hide();}
|
||||
break;case 'checkbox':case 'radio':i.attr('checked',i.attr('defaultValue'));break;case 'text':case 'textarea':i.val(i.attr('defaultValue'));if(i.val()==''){i.addClass('polyfill-placeholder');i.val(i.attr('placeholder'));}
|
||||
break;default:i.val(i.attr('defaultValue'));break;}});});return $this;};$.prioritize=function($elements,condition){var key='__prioritize';if(typeof $elements!='jQuery')
|
||||
$elements=$($elements);$elements.each(function(){var $e=$(this),$p,$parent=$e.parent();if($parent.length==0)
|
||||
return;if(!$e.data(key)){if(!condition)
|
||||
return;$p=$e.prev();if($p.length==0)
|
||||
return;$e.prependTo($parent);$e.data(key,$p);}
|
||||
else{if(condition)
|
||||
return;$p=$e.data(key);$e.insertAfter($p);$e.removeData(key);}});};})(jQuery);
|
||||
@@ -0,0 +1 @@
|
||||
{"Target":"js/util.min.f841fbc8f1c113a212eaafc553ece315c624ee0f2b6373518f89a224dfac3cf1.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-+EH7yPHBE6IS6q/FU+zjFcYk7g8rY3NRj4miJN+sPPE="}}
|
||||
@@ -0,0 +1 @@
|
||||
pre,code{position:relative;-ms-behavior:url(assets/js/ie/PIE.htc)}input[type=text],input[type=password],input[type=email],select,textarea{position:relative;-ms-behavior:url(assets/js/ie/PIE.htc);line-height:3em}input[type=checkbox],input[type=radio]{opacity:1;z-index:auto}input[type=checkbox]+label:before,input[type=radio]+label:before{display:none}input[type=submit],input[type=reset],input[type=button],.button{position:relative;-ms-behavior:url(assets/js/ie/PIE.htc)}input.alt[type=submit],input.alt[type=reset],input.alt[type=button],.button.alt{border:solid 2px #e5e5e5}.box{position:relative;-ms-behavior:url(assets/js/ie/PIE.htc)}.box .image.featured{margin:2em 0;width:100%}.icon.major{position:relative;-ms-behavior:url(assets/js/ie/PIE.htc)}.image{position:relative;-ms-behavior:url(assets/js/ie/PIE.htc)}.image img{position:relative;-ms-behavior:url(assets/js/ie/PIE.htc)}#header nav>ul>li a{color:#fff;display:inline-block;text-decoration:none;border:0}#header nav>ul>li a.icon:before{color:#fff;margin-right:.5em}#header.alt{color:#fff}#header.alt nav>ul>li a.icon:not(.button):before{color:rgba(255,255,255,.75)}#header.alt nav>ul>li.active a:not(.button){background-color:rgba(255,255,255,.2)}.dropotron{border:solid 1px #e5e5e5}.dropotron.level-0{margin-top:0}.dropotron.level-0:before{display:none}#banner{background-attachment:scroll;background-image:url(../../images/banner.jpg);background-position:auto;background-repeat:no-repeat;background-size:cover;-ms-behavior:url(assets/js/ie/backgroundsize.min.htc)}#banner input[type=submit],#banner input[type=reset],#banner input[type=button],#banner .button{border:solid 2px #fff}#main{position:relative;z-index:1}#cta input[type=text],#cta input[type=password],#cta input[type=email],#cta select,#cta textarea{background:#e89980;border:solid 2px #fff}#cta .formerize-placeholder{color:#fff!important}
|
||||
@@ -0,0 +1 @@
|
||||
{"Target":"scss/ie8.min.css","MediaType":"text/css","Data":{}}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"Target":"scss/main.min.b50f2c33b3a3270e1ed37e2ec49b90866b5cab722d1eb8dfec3487119697ba5f.css","MediaType":"text/css","Data":{"Integrity":"sha256-tQ8sM7OjJw4e034uxJuQhmtcq3ItHrjf7DSHEZaXul8="}}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"Target":"style.main.min.4b11fc14e0b16ddfbd426ba5762c0c8736a2a6799c09bfc2ab8ed265d26306f4.css","MediaType":"text/css","Data":{"Integrity":"sha256-SxH8FOCxbd+9QmuldiwMhzaipnmcCb/Cq47SZdJjBvQ="}}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"Target":"scss/main.min.css","MediaType":"text/css","Data":{}}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"Target":"style.main.min.css","MediaType":"text/css","Data":{}}
|
||||
37
themes/alpha-church/exampleSite/static/contact_mail.php
Normal file
37
themes/alpha-church/exampleSite/static/contact_mail.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
# Edit the following 5 variables to fit your needs!
|
||||
|
||||
# Recipient of the Mail:
|
||||
$to = "admin@example.org";
|
||||
# The "from" address of the Mail. This should match the domain of the server:
|
||||
$from = "website@example.org";
|
||||
# Forward Users to this Page if the mail is successfully sent:
|
||||
$confirm_page = "/contact_thanks";
|
||||
# If something goes wrong and sending the mail fails, forward users to:
|
||||
$error_page = "/404.html";
|
||||
# Specify the Subject of the Mail:
|
||||
$subject = "Feedback from example.org";
|
||||
|
||||
|
||||
if (isset($_POST['send'])) {
|
||||
$message = "Name: " . $_POST['name'] . "\r\n\r\n";
|
||||
$message .= "Email: " . $_POST['email'] . "\r\n\r\n";
|
||||
$message .= "Message: " . $_POST['message'] . "\r\n\r\n";
|
||||
|
||||
$headers = "From: " . $from . "\r\n";
|
||||
$headers .= "Content-Type: text/plain; charset: utf-8";
|
||||
$email_ok = filter_input(INPUT_POST, 'email', FILTER_VALIDATE_EMAIL);
|
||||
if ($email_ok) {
|
||||
$headers .= "\r\nReply-To: $email";
|
||||
}
|
||||
|
||||
$success = mail($to, $subject, $message, $headers);
|
||||
|
||||
if (isset($success) && $success){
|
||||
header("Location: ".$confirm_page);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
header("Location: ".$error_page);
|
||||
exit;
|
||||
?>
|
||||
3
themes/alpha-church/exampleSite/static/example.css
Normal file
3
themes/alpha-church/exampleSite/static/example.css
Normal file
@@ -0,0 +1,3 @@
|
||||
.icon.major.accent2 {
|
||||
background: #0000FF;
|
||||
}
|
||||
BIN
themes/alpha-church/exampleSite/static/img/banner.jpg
Normal file
BIN
themes/alpha-church/exampleSite/static/img/banner.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 279 KiB |
BIN
themes/alpha-church/exampleSite/static/img/freely-10057.jpg
Normal file
BIN
themes/alpha-church/exampleSite/static/img/freely-10057.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 96 KiB |
BIN
themes/alpha-church/exampleSite/static/img/freely-20445.jpg
Normal file
BIN
themes/alpha-church/exampleSite/static/img/freely-20445.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 197 KiB |
BIN
themes/alpha-church/exampleSite/static/img/freely-26905.jpg
Normal file
BIN
themes/alpha-church/exampleSite/static/img/freely-26905.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 45 KiB |
BIN
themes/alpha-church/exampleSite/static/img/podcast-cover.jpg
Normal file
BIN
themes/alpha-church/exampleSite/static/img/podcast-cover.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1018 KiB |
Reference in New Issue
Block a user