disqus, feed fix, deploy gem
This commit is contained in:
70
config.rb
70
config.rb
@ -1,39 +1,8 @@
|
||||
#Markdown
|
||||
set :markdown_engine, :redcarpet
|
||||
|
||||
#Livereload
|
||||
activate :livereload
|
||||
|
||||
###
|
||||
# Compass
|
||||
###
|
||||
|
||||
# Change Compass configuration
|
||||
# compass_config do |config|
|
||||
# config.output_style = :compact
|
||||
# end
|
||||
|
||||
###
|
||||
# Page options, layouts, aliases and proxies
|
||||
###
|
||||
|
||||
# Per-page layout changes:
|
||||
#
|
||||
# With no layout
|
||||
# page "/path/to/file.html", :layout => false
|
||||
#
|
||||
# With alternative layout
|
||||
# page "/path/to/file.html", :layout => :otherlayout
|
||||
#
|
||||
# A path which all have the same layout
|
||||
# with_layout :admin do
|
||||
# page "/admin/*"
|
||||
# end
|
||||
|
||||
# Proxy (fake) files
|
||||
# page "/this-page-has-no-template.html", :proxy => "/template-file.html" do
|
||||
# @which_fake_page = "Rendering a fake page with a variable"
|
||||
# end
|
||||
#Markdown
|
||||
set :markdown_engine, :redcarpet
|
||||
|
||||
# Site Settings
|
||||
@analytics_account = 'UA-12808649-1'
|
||||
@ -49,6 +18,17 @@ after_configuration do
|
||||
sprockets.append_path File.join "#{root}", @bower_config["directory"]
|
||||
end
|
||||
|
||||
# Change Compass configuration
|
||||
# compass_config do |config|
|
||||
# config.output_style = :compact
|
||||
# end
|
||||
|
||||
page "/feed.xml", :layout => false
|
||||
|
||||
data.video.keys.each do |vdo|
|
||||
proxy "video/#{vdo}.html", 'video/template.html', locals: {video: data.video[vdo]}, ignore: true
|
||||
end
|
||||
|
||||
activate :blog do |blog|
|
||||
blog.paginate = true
|
||||
blog.layout = "layouts/blog.html"
|
||||
@ -56,12 +36,6 @@ activate :blog do |blog|
|
||||
blog.default_extension = '.haml'
|
||||
blog.tag_template = "tag.html"
|
||||
blog.sources = "blog/{title}.html"
|
||||
# blog.calendar_template = 'calendar.html'
|
||||
end
|
||||
|
||||
#video pages
|
||||
data.video.keys.each do |vdo|
|
||||
proxy "video/#{vdo}.html", 'video/template.html', locals: {video: data.video[vdo]}, ignore: true
|
||||
end
|
||||
|
||||
activate :directory_indexes
|
||||
@ -98,11 +72,13 @@ configure :build do
|
||||
# set :http_path, "/Content/images/"
|
||||
end
|
||||
|
||||
# ftp deployment configuration.
|
||||
# activate :deploy do |deploy|
|
||||
# deploy.method = :ftp
|
||||
# deploy.host = "ftp-host"
|
||||
# deploy.user = "ftp-user"
|
||||
# deploy.password = "ftp-password"
|
||||
# deploy.path = "ftp-path"
|
||||
# end
|
||||
activate :deploy do |deploy|
|
||||
deploy.method = :rsync
|
||||
deploy.host = 'fullsight.com'
|
||||
deploy.path = 'vhost/markamoser'
|
||||
deploy.user = 'mmoser'
|
||||
deploy.port = 6791
|
||||
deploy.clean = true # remove orphaned files on remote host, default: false
|
||||
# deploy.flags = '-rltgoDvzO --no-p --del' # add custom flags, default: -avz
|
||||
deploy.build_before = true
|
||||
end
|
||||
|
Reference in New Issue
Block a user