octopress / littlefoot

Fancy footnote popovers with native Javascript, for any Jekyll site.
MIT License
10 stars 6 forks source link

Change /javascripts directory to /js? #2

Closed tohuw closed 9 years ago

tohuw commented 9 years ago

When I include the assets, it creates a /javascripts directory. I'd rather it put that file in /js. How do I change that behavior?

tohuw commented 9 years ago

On further investigation, the <head> element contains links to invalid locations:

<script src="/littlefoot/javascripts/littlefoot.js"></script>

It also seems this plugin calls or uses the same code as octopress-asset-pipeline? I experimented with removing this gem and calls to it, and fiddling about with my config. The issues remain. What am I missing?

tohuw commented 9 years ago

Here's the relevant section of my config:

asset_pipeline:
  stylesheets_dir: /css
  combine_css: false
  compress_css: true
  order_css: []
  javascripts_dir: /js
  combine_js: false
  compress_js: true
  order_js: []
tohuw commented 9 years ago

Okay, I sorted things out, but it required using stylesheets and javascripts, when I'd rather use css and js. Now that they're all in there, everything combines as I expect.

How can I configure octopress ink and asset-pipeline to properly use these directories?

For posterity, my updated config section:

asset_pipeline:
  stylesheets_dir: 'stylesheets'
  combine_css: true
  compress_css: true
  order_css: []
  javascripts_dir: 'javascripts'
  combine_js: true
  compress_js: true
  order_js: []
imathis commented 9 years ago

Once you've updated to octopress-ink 1.2.0, this should resolve it for you: https://github.com/octopress/asset-pipeline/issues/17#issuecomment-125071199