font directory fixes
This commit is contained in:
parent
41df43092d
commit
4fe75da020
10 changed files with 24 additions and 3 deletions
|
@ -25,7 +25,6 @@ module Middleman::Base
|
|||
app.set :js_dir, "javascripts" # Where to look for javascript files
|
||||
app.set :css_dir, "stylesheets" # Where to look for CSS files
|
||||
app.set :images_dir, "images" # Where to look for images
|
||||
app.set :fonts_dir, "fonts" # Where to look for fonts
|
||||
|
||||
app.set :build_dir, "build" # Which folder are builds output to
|
||||
app.set :http_prefix, nil # During build, add a prefix for absolute paths
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
module Middleman::CoreExtensions::Compass
|
||||
class << self
|
||||
def registered(app)
|
||||
# Where to look for fonts
|
||||
app.set :fonts_dir, "fonts"
|
||||
|
||||
app.extend ClassMethods
|
||||
|
||||
require "compass"
|
||||
|
@ -56,8 +59,8 @@ module Middleman::CoreExtensions::Compass
|
|||
File.join(app.http_prefix || "/", app.js_dir)
|
||||
end
|
||||
|
||||
config.http_javascripts_path = if app.respond_to? :http_fonts_path
|
||||
app.http_js_path
|
||||
config.http_fonts_path = if app.respond_to? :http_fonts_path
|
||||
app.http_fonts_path
|
||||
else
|
||||
File.join(app.http_prefix || "/", app.fonts_dir)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue