-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move to dropbox for blog post hosting
- Loading branch information
Showing
60 changed files
with
338 additions
and
1,558 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1 +1,2 @@ | |||
web: bundle exec unicorn -p $PORT -c ./unicorn.rb | web: bundle exec unicorn -p $PORT -c ./unicorn.rb | ||
worker: bundle exec rake resque:work QUEUE=web |
This file contains 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,2 +1,3 @@ | |||
compass: bundle exec compass watch | compass: bundle exec compass watch | ||
web: bundle exec unicorn -p 4141 -c ./unicorn.rb | web: bundle exec unicorn -p 4141 -c ./unicorn.rb | ||
worker: bundle exec rake resque:work QUEUE=web |
This file contains 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,2 @@ | |||
require File.expand_path("config/boot.rb") | |||
require 'resque/tasks' |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,27 @@ | |||
# encoding: utf-8 | |||
|
|||
Sketching.controllers :posts do | |||
|
|||
get :index, :map=>"/" do | |||
#expires_in 30 | |||
@posts = Post.all.order_by([[:published_at, :desc]]) | |||
haml :"posts/index", :layout => !request.xhr? | |||
end | |||
|
|||
get :show, :map => "/:year/:month/:day/:slug" do | |||
#expires_in 30 | |||
@post = Post.where(:slug => params[:slug]).first | |||
haml :"posts/show", :layout => !request.xhr? | |||
end | |||
|
|||
post :refresh, :map => "/posts/refresh" do | |||
Resque.enqueue(PostFetching) | |||
redirect "/" | |||
end | |||
|
|||
# get :sitemap, :map => "/blog/sitemap", :provides => [:xml] do | |||
# #expires_in 30 | |||
# File.open(blog_path + "/sitemap.xml").read | |||
# end | |||
|
|||
end |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,18 @@ | |||
%section.posts | |||
- @posts.each do |post| | |||
%article.post | |||
%header | |||
- if post.draft | |||
%h1.draft= post.title | |||
%p | |||
Draft | |||
- else | |||
%h1= link_to(post.title, post.url) | |||
%p | |||
= distance_of_time_in_words(Date.today, post.published_at) | |||
ago | |||
|
|||
|
|||
%p#draft_items | |||
%em | |||
Items marked as "draft" are me making a promise that I will write about this subject, but I'm still thinking it through. |
This file contains 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,10 @@ | |||
- content_for :scripts do | |||
%script{:src => "http://disqus.com/forums/sketchingwithcode/embed.js", :type => "text/javascript"} | |||
%article | |||
%header | |||
%h1= @post.title | |||
= @post.content_html | |||
%footer#comments | |||
#disqus_thread | |||
%noscript | |||
%a{:href => "http://sketchingwithcode.disqus.com/?url=ref"} View the discussion thread. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.