-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.rb
64 lines (52 loc) · 1.42 KB
/
config.rb
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
require "extensions/views"
activate :views
activate :directory_indexes
set :relative_links, true
set :css_dir, "assets/stylesheets"
set :js_dir, "assets/javascripts"
set :images_dir, "assets/images"
set :fonts_dir, "assets/fonts"
set :layout, "layouts/application"
page '/intro_to_web/example_page.html', directory_index: false
page '/intro_to_web/example_page_with_style.html', directory_index: false
page '/intro_to_web/example_page_with_js.html', directory_index: false
page "/404.html", :directory_index => false, :layout => false # For GH pages
configure :development do
activate :livereload
end
configure :build do
# Relative assets needed to deploy to Github Pages
activate :relative_assets
end
activate :deploy do |deploy|
deploy.build_before = true
deploy.method = :git
deploy.branch = 'master'
end
helpers do
def nav_link(link_text, page_url, options = {})
options[:class] ||= ""
if current_page.url.length > 1
current_url = current_page.url.chop
else
current_url = current_page.url
end
options[:class] << " active" if page_url == current_url
link_to(link_text, page_url, options)
end
def signup_url
"https://www.bridgetroll.org/events/502"
end
def event_date
"March 20th—21st, 2020".html_safe
end
def address_line_1
"Propellers, Inc."
end
def address_line_2
"4364 S. Alston Ave, Ste. 300"
end
def address_line_3
"Durham, NC 27713"
end
end