-
Notifications
You must be signed in to change notification settings - Fork 0
Home
The Rev. C. A. Imhoff served as the second district superintendent for the Pittsburgh District Church of the Nazarene from 1909 to 1912.
This theme is for use with the static site generator Eleventy.
The repository is specifically designed to be loaded as a Git submodule inside a site’s includes directory (e.g., /src/includes/
in pghnaz projects).
This theme is written entirely in semantic HTML, native CSS, and vanilla JavaScript.
All template files are written either as Eleventy JavaScript templates or JavaScript functions. (See the coding standards in the pghnaz.org wiki). This repository does not utilize any of Eleventy’s other supported template languages.
This repository contains the following items that are common to the root site and subdomains for the Pittsburgh District Church of the Nazarene.
- Layouts
- Universal Filters
- Universal Shortcodes
- Other JavaScript functions
- CSS
- Client-side JavaScript
- Other static assets
Filters, shortcodes, and other JavaScript functions defined in this repository must be imported into the Eleventy configuration file (.eleventy.js
) for a given site. These functions must also pass the Eleventy config
argument as a parameter. For example:
// .eleventy.js
var socialMeta = require('./src/includes/shortcodes/social-meta')
/**
* Eleventy’s configuration module.
* @module .eleventy
* @param {Object} eleventyConfig 11ty’s config argument.
* @returns {Object} 11ty’s optional Config object.
* @see {@link https://www.11ty.io/docs/config/ 11ty docs}
*/
module.exports = function (eleventyConfig) {
/*
* Function calls to included shortcodes
*/
socialMeta(eleventyConfig)
}
Any layouts, filters, shortcodes, or other template functions that reference site-specific Eleventy collections or data sets should be defined in the Eleventy configuration file for that site.
Copyright © 2019 by Pittsburgh District Church of the Nazarene
- Welcome
- Setup
- Coding Standards
-
HTML (in
/pghnaz.org/wiki
) -
CSS (in
/pghnaz.org/wiki
) -
JavaScript (in
/pghnaz.org/wiki
)
-
HTML (in
- Color Scheme
- Style Guide
- Layouts
404.11ty.js
base.11ty.js
calendar.11ty.js
contact.11ty.js
content.11ty.js
collection.11ty.js
eventList.11ty.js
map.11ty.js
search.11ty.js
- Filters
- Shortcodes
- Site Information
affiliateLogo()
copyrightNotice()
favicon()
rootDomainLogo()
siteLogo()
siteTagline()
- Document metadata
descriptionMeta()
contentDate()
contentTitle()
externalCSS()
headTag()
inlineCSS()
socialMeta()
titleTag()
- Navigation
menu()
socialLinks()
- Headers
contentHeader()
siteHeader()
- Footers
contentFooter()
siteFooter()
- Call to Action
callToAction()
editThisPage()
subscribeToNewsletter()
- Site Information
- Client-Side JavaScript
search.js
- Other static assets
- Badges
- Branding
- Fonts