-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.rb
81 lines (63 loc) · 2.04 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# General configuration
require 'hashie'
require 'pathname'
require 'lib/content_resource'
activate :syntax, :line_numbers => false
activate :directory_indexes
activate :sprockets
set :site_config, ::Hashie::Mash.new(YAML.load_file("./site_config.yaml"))
# Reload the browser automatically whenever files change
configure :development do
activate :pry
activate :livereload
end
# Build-specific configuration
configure :build do
activate :minify_css
activate :minify_javascript
end
##
# Page options, layouts, aliases and proxies
###
set :layout, :page_layout
page /schedule\/\d{4}-\d{2}-\d{2}.html/, layout: :schedule_layout
page 'assignments/*', layout: :assignment_layout
# Per-page layout changes:
# With no layout
page '/*.xml', layout: false
page '/*.json', layout: false
page '/*.txt', layout: false
set :js_dir, 'assets/javascripts'
set :css_dir, 'assets/stylesheets'
set :images_dir, 'assets/images'
###
# Helpers
###
# require 'helpers/lesson_helpers'#
# require 'helpers/media_helpers'
# require 'helpers/meta_helpers'
# require 'helpers/page_meta_helpers'
# require 'helpers/site_config_helpers'
# helpers LessonHelpers
# helpers MediaHelpers
# helpers MetaHelpers
# helpers PageMetaHelpers
# helpers SiteConfigHelpers
# Methods defined in the helpers block are available in templates
# helpers do
# def some_helper
# "Helping"
# end
# end
activate :s3_sync do |s3_sync|
# s3_sync.bucket = '2015.padjo.org' # The name of the S3 bucket you are targetting. This is globally unique.
s3_sync.region = 'us-east-1' # The AWS region for your bucket.
s3_sync.delete = false # We delete stray files by default.
# s3_sync.after_build = true # We do not chain after the build step by default.
s3_sync.prefer_gzip = false
s3_sync.path_style = true
s3_sync.reduced_redundancy_storage = false
s3_sync.acl = 'public-read'
s3_sync.encryption = false
# s3_sync.prefix = ''
end