forked from devuan/www.devuan.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
2.1 KiB
99 lines
2.1 KiB
#
|
|
## beta.devuan.org
|
|
#
|
|
# This is a Middleman configuration file.
|
|
# http://middlemanapp.com/
|
|
#
|
|
|
|
###
|
|
# Compass
|
|
###
|
|
|
|
# Change Compass configuration
|
|
compass_config do |config|
|
|
config.output_style = :compact
|
|
end
|
|
|
|
###
|
|
# Page options, layouts, aliases and proxies
|
|
###
|
|
|
|
page "/index.html", :layout => :home
|
|
page "/splash", :layout => :home
|
|
page "/os/*", :layout => :os
|
|
|
|
# Proxy pages (https://middlemanapp.com/advanced/dynamic_pages/)
|
|
# proxy "/this-page-has-no-template.html", "/template-file.html", :locals => {
|
|
# :which_fake_page => "Rendering a fake page with a local variable" }
|
|
# Don't use this for old URLs: see etc/nginx
|
|
|
|
###
|
|
# Variables (DO NOT CHANGE)
|
|
###
|
|
|
|
set :markdown_engine, :kramdown
|
|
set :markdown, :fenced_code_blocks => true, :smartypants => true, :footnotes => true
|
|
|
|
set :css_dir, 'ui/css'
|
|
set :fonts_dir, 'ui/css/fonts'
|
|
set :images_dir, 'ui/img'
|
|
set :js_dir, 'ui/js'
|
|
set :build_dir, 'public'
|
|
set :partials_dir, 'partials'
|
|
|
|
set :relative_links, true
|
|
|
|
###
|
|
# Helpers
|
|
###
|
|
|
|
# Automatic image dimensions on image_tag helper
|
|
#activate :automatic_image_sizes
|
|
|
|
# Enable internationalization
|
|
# MIRROR: put your language first in :langs, and update :mount_at_root
|
|
activate :i18n, :templates_dir => 'pages', :data => 'locales',
|
|
:langs => [:en, :es, :de, :fr, :it], :mount_at_root => :en
|
|
|
|
# Reload the browser automatically whenever files change
|
|
configure :development do
|
|
activate :livereload
|
|
end
|
|
|
|
helpers do
|
|
def bitcoin_address
|
|
"1QFbx3bKA8LABAGEaSe7EiP9JCxe2j4fN7".freeze
|
|
end
|
|
def cc_text
|
|
"This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.".freeze
|
|
end
|
|
def favicon_url
|
|
"/ui/img/favicon.ico".freeze
|
|
end
|
|
def site_title
|
|
I18n.t(:site_title)
|
|
end
|
|
def tagline
|
|
I18n.t(:tagline)
|
|
end
|
|
end
|
|
|
|
|
|
## Build-specific configuration
|
|
|
|
configure :build do
|
|
# For example, change the Compass output style for deployment
|
|
activate :minify_css
|
|
|
|
# Minify Javascript on build
|
|
activate :minify_javascript
|
|
|
|
# Enable cache buster
|
|
#activate :asset_hash
|
|
|
|
# Use relative URLs
|
|
activate :relative_assets
|
|
|
|
# Or use a different image path
|
|
# set :http_prefix, "/Content/images/"
|
|
end
|
|
|