mypad/
styles/
bootstrap.css
main.css
scripts/
bootstrap.js
main.js
logs/
hackers-path/
index.html
dragon-notes/
index.html
net-broca-divide/
index.html
index.html
projects.html
resume.html
ideas.html
_pad/
layouts/
log.slim
main.slim
styles/
bootstrap.css
main.scss
scripts/
bootstrap.js
main.coffee
logs/
hackers-path.mdown
dragon-notes.mdown
net-broca-divide.mdown
index.slim
resume.slim
projects.slim
ideas.slim
Created
November 21, 2011 00:54
-
-
Save krainboltgreene/1381303 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
require 'bundle/setup' | |
include Lifepad | |
compile_layout "layouts/*.slim" do | |
use Slim | |
end | |
compile "*.slim" do | |
use Slim | |
layout :main | |
end | |
compile "logs/*.mdown" do |view| | |
use Redcarpet, Typogrubby | |
options_for Redcarpet, fenced_code: true, autolink: true, no_intraemphasis: true, generate_toc: true | |
layout :log | |
path "logs/" + view[:created_at] + "/index.html" | |
end | |
compile "scripts/*.(coffee|js)" do |script| | |
use CoffeeScript, Uglifier | |
path "scripts/" + script + ".js" | |
end | |
compile "styles/*.(scss|css)" do |style| | |
use SASS, Rainpress | |
options_for SASS, style: :compressed | |
path "styles/" + style + ".css" | |
end |
@jrgifford: Attempting to combine a little of Jekyll and Nanoc into something that I can get behind.
@krainboltgreene: I see... Nice
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Recompiling your lifepad?