From de1bfc440c87d2a3e044855400f56171c8ad7534 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Sat, 6 Apr 2013 23:39:45 -0700 Subject: [PATCH] Support fonts with asset_path --- .../lib/middleman-more/core_extensions/default_helpers.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleman-more/lib/middleman-more/core_extensions/default_helpers.rb b/middleman-more/lib/middleman-more/core_extensions/default_helpers.rb index 50392538..0f22fa4a 100644 --- a/middleman-more/lib/middleman-more/core_extensions/default_helpers.rb +++ b/middleman-more/lib/middleman-more/core_extensions/default_helpers.rb @@ -18,7 +18,6 @@ module Middleman app.helpers ::Padrino::Helpers::FormatHelpers app.helpers ::Padrino::Helpers::RenderHelpers app.helpers ::Padrino::Helpers::NumberHelpers - # app.helpers ::Padrino::Helpers::TranslationHelpers app.helpers Helpers @@ -94,10 +93,11 @@ module Middleman when :css then css_dir when :js then js_dir when :images then images_dir + when :fonts then fonts_dir else kind.to_s end source = source.to_s.tr(' ', '') - ignore_extension = (kind == :images) # don't append extension + ignore_extension = (kind == :images || kind == :fonts) # don't append extension source << ".#{kind}" unless ignore_extension || source.end_with?(".#{kind}") asset_folder = "" if source.start_with?('/') # absolute path