summaryrefslogtreecommitdiff
path: root/_posts
diff options
context:
space:
mode:
authorBen Burwell <bburwell1@gmail.com>2014-12-27 16:42:05 -0500
committerBen Burwell <bburwell1@gmail.com>2014-12-27 16:42:05 -0500
commit3b563b3b82f4b4f20e66e1f9aea6dc16a08fc802 (patch)
treed2a1ee43c5c7cd74bd0ad98b5ab76899788bcf49 /_posts
parenta2bf1568d77fb8644bd65b8d2edeacd1e34dc7f8 (diff)
Clean up markup & styles
Diffstat (limited to '_posts')
-rw-r--r--_posts/2014-05-31-less-file-compilation-for-jekyll-github-pages.markdown10
1 files changed, 1 insertions, 9 deletions
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/).