From 3b563b3b82f4b4f20e66e1f9aea6dc16a08fc802 Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Sat, 27 Dec 2014 16:42:05 -0500 Subject: Clean up markup & styles --- ...5-31-less-file-compilation-for-jekyll-github-pages.markdown | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to '_posts/2014-05-31-less-file-compilation-for-jekyll-github-pages.markdown') diff --git a/_posts/2014-05-31-less-file-compilation-for-jekyll-github-pages.markdown b/_posts/2014-05-31-less-file-compilation-for-jekyll-github-pages.markdown index 6762b7c..56e0410 100644 --- a/_posts/2014-05-31-less-file-compilation-for-jekyll-github-pages.markdown +++ b/_posts/2014-05-31-less-file-compilation-for-jekyll-github-pages.markdown @@ -11,14 +11,6 @@ I recently wrote about [migrating my website to GitHub Pages](/writing/migrating Using [Git hooks](http://git-scm.com/book/en/Customizing-Git-Git-Hooks), it’s possible to run a script at certain points during the Git workflow. To take advantage of this in my case, I added a small bash script to `.git/hooks/pre-commit`: -```bash -#!/bin/sh - -export PATH=/usr/local/bin:$PATH -cd /Users/Ben/Documents/Code/benburwell.github.io/assets/less -lessc --clean-css style.less ../css/style.css -cd /Users/Ben/Documents/Code/benburwell.github.io -git add /Users/Ben/Documents/Code/benburwell.github.io/assets/css/style.css -``` +{% gist benburwell/0ef673f6311b5191186e %} This is a pretty rough script, but it gets the job done for me. For a much more thorough script, see [this article by TJ VanToll](http://tjvantoll.com/2012/07/07/the-ideal-less-workflow-with-git/). -- cgit v1.2.3