matthodan / jekyll-asset-pipeline

Powerful asset pipeline for Jekyll that collects, converts and compresses JavaScript and CSS assets
http://www.matthodan.com/2012/11/22/jekyll-asset-pipeline.html
MIT License
364 stars 31 forks source link

display_path isn't working with Octopress #19

Open coneybeare opened 11 years ago

coneybeare commented 11 years ago
# jekyll-asset-pipeline
asset_pipeline:
  bundle: true                                          # Default = true
  compress: true                                        # Default = true
  output_path: assets                                   # Default = assets
  display_path: http://site.com/blog                    # Default = nil
  gzip: true                                            # Default = false

and

{% css_asset_tag global %}
- /_assets/stylesheets/screen.css
{% endcss_asset_tag %}  
{% javascript_asset_tag global %}
- /_assets/javascripts/modernizr-2.0.js
- /_assets/javascripts/ender.js
- /_assets/javascripts/octopress.js
{% endjavascript_asset_tag %}

renders

<link href='/assets/global-692dcc974a1799872aee8676b793b6e2.css' rel='stylesheet' type='text/css' />
<script src='/assets/global-f56b2ba0c79dc638d169c6ceb1751bff.js' type='text/javascript'></script>

but should render:

<link href='http://site.com/blog/assets/global-692dcc974a1799872aee8676b793b6e2.css' rel='stylesheet' type='text/css' />
<script src='http://site.com/blog/assets/global-f56b2ba0c79dc638d169c6ceb1751bff.js' type='text/javascript'></script>

right?

matthodan commented 11 years ago

Thanks for pointing out. This should work, so may be a bug.

gitviola commented 8 years ago

Problem is still present