Last active
March 10, 2019 16:42
-
-
Save davidpots/5853188 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Jekyll Generator for SCSS | |
# | |
# (File paths in this description relative to jekyll project root directory) | |
# Place this file in ./_plugins | |
# Place .scss files in ./_scss | |
# Compiles .scss files in ./_scss to .css files in whatever directory you indicated in your config | |
# Config file placed in ./_sass/config.rb | |
# | |
require 'sass' | |
require 'pathname' | |
require 'compass' | |
require 'compass/exec' | |
module Jekyll | |
class CompassGenerator < Generator | |
safe true | |
def generate(site) | |
Dir.chdir File.expand_path('../_sass', File.dirname(__FILE__)) do | |
Compass::Exec::SubCommandUI.new(%w(compile)).run! | |
end | |
end | |
end | |
end |
@ThomasHoadley The site generates into _site. You can point your domain name to your _site folder in jekyll. On a second thought of this whole hack, why not just use jekyll-assets ?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there. Thanks for the great tutorial over at http://davidpots.com/blog/jekyll-github-pages-compass/.
I was wondering if you could explain how to generate the site into it's own separate folder so I can host it as a static site with a host other than github?
Any help would be much appreciated!