Main repository for Devuan's 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.
 
 
 
 
 

100 lines
2.1 KiB

  1. #
  2. ## beta.devuan.org
  3. #
  4. # This is a Middleman configuration file.
  5. # http://middlemanapp.com/
  6. #
  7. ###
  8. # Compass
  9. ###
  10. # Change Compass configuration
  11. compass_config do |config|
  12. config.output_style = :compact
  13. end
  14. ###
  15. # Page options, layouts, aliases and proxies
  16. ###
  17. page "/index.html", :layout => :home
  18. page "/splash", :layout => :home
  19. page "/os/*", :layout => :os
  20. # Proxy pages (https://middlemanapp.com/advanced/dynamic_pages/)
  21. # proxy "/this-page-has-no-template.html", "/template-file.html", :locals => {
  22. # :which_fake_page => "Rendering a fake page with a local variable" }
  23. # Don't use this for old URLs: see etc/nginx
  24. ###
  25. # Variables (DO NOT CHANGE)
  26. ###
  27. set :markdown_engine, :kramdown
  28. set :markdown, :fenced_code_blocks => true, :smartypants => true, :footnotes => true
  29. set :css_dir, 'ui/css'
  30. set :fonts_dir, 'ui/css/fonts'
  31. set :images_dir, 'ui/img'
  32. set :js_dir, 'ui/js'
  33. set :build_dir, 'public'
  34. set :partials_dir, 'partials'
  35. set :relative_links, true
  36. ###
  37. # Helpers
  38. ###
  39. # Automatic image dimensions on image_tag helper
  40. #activate :automatic_image_sizes
  41. # Enable internationalization
  42. # MIRROR: put your language first in :langs, and update :mount_at_root
  43. activate :i18n, :templates_dir => 'pages', :data => 'locales',
  44. :langs => [:en, :es, :de, :fr, :it], :mount_at_root => :en
  45. # Reload the browser automatically whenever files change
  46. configure :development do
  47. activate :livereload
  48. end
  49. helpers do
  50. def bitcoin_address
  51. "1QFbx3bKA8LABAGEaSe7EiP9JCxe2j4fN7".freeze
  52. end
  53. def cc_text
  54. "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.".freeze
  55. end
  56. def favicon_url
  57. "/ui/img/favicon.ico".freeze
  58. end
  59. def site_title
  60. I18n.t(:site_title)
  61. end
  62. def tagline
  63. I18n.t(:tagline)
  64. end
  65. end
  66. ## Build-specific configuration
  67. configure :build do
  68. # For example, change the Compass output style for deployment
  69. activate :minify_css
  70. # Minify Javascript on build
  71. activate :minify_javascript
  72. # Enable cache buster
  73. #activate :asset_hash
  74. # Use relative URLs
  75. activate :relative_assets
  76. # Or use a different image path
  77. # set :http_prefix, "/Content/images/"
  78. end