<commit_before>###
# Compass
###

# Susy grids in Compass
# First: gem install susy --pre
require 'susy'

# 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

###
# Helpers
###

# Automatic image dimensions on image_tag helper
# activate :automatic_image_sizes

# Methods defined in the helpers block are available in templates
helpers do
  def nav_active(page)
    page_classes == page ? 'active' : ''
  end
end


set :css_dir, 'stylesheets'

set :js_dir, 'javascripts'

set :images_dir, 'images'

# 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 :cache_buster

  # Use relative URLs
  activate :relative_assets

  # Create favicon/touch icon set from source/favicon_base.png
  # activate :favicon_maker

  # Compress PNGs after build
  # First: gem install middleman-smusher
  # require "middleman-smusher"
  # activate :smusher

  # Or use a different image path
  # set :http_path, "/Content/images/"

  # Pretty URLs
  activate :directory_indexes
end

# Livereload gem
activate :livereload

# Faster Markdown processing
set :markdown_engine, :redcarpet

# Slim html<commit_msg>Adopt new config<commit_after># Page options, layouts, aliases and proxies
# ---------------------------------------------------------------------------

# Vars
@project_name = 'hfuse'
@base_url = 'http://www.hfuse.com/'

# Per-page layout changes:
#
# With no layout
page "/sitemap.xml", 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


# Helpers
# ---------------------------------------------------------------------------

# Automatic image dimensions on image_tag helper
activate :automatic_image_sizes

# Methods defined in the helpers block are available in templates
helpers do
  def nav_active(page)
    if page_classes == page
      'active'
    elsif page_classes.include? page
      'semiactive'
    else
      ''
    end
  end
end


# Compass
# ---------------------------------------------------------------------------

# Susy grids in Compass
# First: gem install susy --pre
require 'susy'

# Change Compass configuration
# compass_config do |config|
#   config.output_style = :compact
# end

set :css_dir, 'stylesheets'

set :js_dir, 'javascripts'

set :images_dir, 'images'


# Build specific
# ---------------------------------------------------------------------------
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 :cache_buster

  # Use relative URLs
  activate :relative_assets

  # Create favicon/touch icon set from source/favicon_base.png
  # activate :favicon_maker

  # Compress PNGs after build
  # First: gem install middleman-smusher
  # require "middleman-smusher"
  # activate :smusher

  # Or use a different image path
  # set :http_path, "/Content/images/"

  # Pretty URLs
  activate :directory_indexes
end

# Livereload gem
activate :livereload

# middleman-navigation gem
activate :navigation

# Markdown processing
set :markdown, :tables => true, :autolink => true, :gh_blockcode => true, :fenced_code_blocks => true
set :markdown_engine, :redcarpet

# Slim html
{'fraction_non_alphanumeric': 0.16291327264015332, 'fraction_numerical': 0.0, 'mean_word_length': 2.8693234476367007, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 1}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2693392', 'n_tokens_mistral': 1281, 'n_tokens_neox': 1229, 'n_words': 408}