-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocpad.coffee
More file actions
70 lines (54 loc) · 2.46 KB
/
docpad.coffee
File metadata and controls
70 lines (54 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# DocPad Configuration File
# http://docpad.org/docs/config
# Define the DocPad Configuration
docpadConfig = {
# Template Data
# =============
# These are variables that will be accessible via our templates
# To access one of these within our templates, refer to the FAQ: https://github.com/bevry/docpad/wiki/FAQ
templateData:
# Specify some site properties
site:
# The production url of our website
url: "http://othstimecapsule.us/"
# Here are some old site urls that you would like to redirect from
oldUrls: []
# The default title of our website
title: "OTHS Time Capsule"
# The website description (for SEO)
description: """
While we may not be allowed to bury a physical time capsule on campus, we're certainly allowed to make a digital one. All you have to do is answer a few questions about your life in general and then upload a short video. In 20 years, we'll send you your data so your children can make fun of you and your stone-age technology. Trust us, it will be fun.
"""
# The website keywords (for SEO) separated by commas
keywords: """
o'fallon, township, high, school, senior, class, 2014, time, capsule, app, pictures, videos, questions, twenty, years
"""
# The website author's name
author: "Kevin Dice"
# The website author's email
email: "kevin.dice1@gmail.com"
# Your company's name
copyright: "© Kevin Dice 2014"
# Helper Functions
# ----------------
# Get the prepared site/document title
# Often we would like to specify particular formatting to our page's title
# we can apply that formatting here
getPreparedTitle: ->
# if we have a document title, then we should use that and suffix the site's title onto it
if @document.title
"#{@document.title} | #{@site.title}"
# if our document does not have it's own title, then we should just use the site's title
else
@site.title
# Get the prepared site/document description
getPreparedDescription: ->
# if we have a document description, then we should use that, otherwise use the site's description
@document.description or @site.description
# Get the prepared site/document keywords
getPreparedKeywords: ->
# Merge the document keywords with the site keywords
@site.keywords.concat(@document.keywords or []).join(', ')
}
# Export the DocPad Configuration
module.exports = docpadConfig