caboodle 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. data/VERSION +1 -1
  2. data/lib/caboodle/app/config/site.yml +3 -1
  3. data/lib/caboodle/app/views/layout.haml +15 -13
  4. data/lib/caboodle/app/{stylesheets → views/stylesheets}/_base.scss +0 -0
  5. data/lib/caboodle/app/{stylesheets → views/stylesheets}/_defaults.scss +0 -0
  6. data/lib/caboodle/app/{stylesheets → views/stylesheets}/ie.scss +0 -0
  7. data/lib/caboodle/app/{stylesheets → views/stylesheets}/print.scss +0 -0
  8. data/lib/caboodle/app/views/stylesheets/screen.scss +140 -0
  9. data/lib/caboodle/app.rb +4 -19
  10. data/lib/caboodle/command.rb +1 -0
  11. data/lib/caboodle/config.rb +2 -1
  12. data/lib/caboodle/helpers.rb +0 -4
  13. data/lib/caboodle/kit.rb +34 -9
  14. data/lib/caboodle/kits/carbonmade/carbonmade.rb +13 -0
  15. data/lib/caboodle/kits/carbonmade/views/carbonmade.haml +2 -0
  16. data/lib/caboodle/kits/flickr/flickr.rb +3 -1
  17. data/lib/caboodle/kits/flickr/views/photography.scss +24 -0
  18. data/lib/caboodle/kits/github/github.rb +1 -1
  19. data/lib/caboodle/kits/{portfolio/config/portfolio.yml → history/config/history.yml} +0 -0
  20. data/lib/caboodle/kits/history/history.rb +40 -0
  21. data/lib/caboodle/kits/{portfolio/views/portfolio.haml → history/views/history.haml} +4 -4
  22. data/lib/caboodle/kits/history/views/history.scss +21 -0
  23. data/lib/caboodle/kits/jquery/jquery.rb +5 -0
  24. data/lib/caboodle/kits/linkedin/linkedin.rb +4 -1
  25. data/lib/caboodle/kits/linkedin/views/cv.haml +1 -1
  26. data/lib/caboodle/kits/linkedin/views/linkedin.scss +61 -0
  27. data/lib/caboodle/kits/onepage/onepage.rb +1 -1
  28. data/lib/caboodle/kits/posterous/posterous.rb +6 -4
  29. data/lib/caboodle/kits/posterous/views/posterous.scss +17 -0
  30. data/lib/caboodle/kits/posterous/views/posts.haml +14 -2
  31. data/lib/caboodle/kits/soundcloud/soundcloud.rb +2 -0
  32. data/lib/caboodle/kits/susy/susy.rb +47 -0
  33. data/lib/caboodle/kits/susy/views/susy/_base.scss +49 -0
  34. data/lib/caboodle/kits/susy/views/susy/_defaults.scss +257 -0
  35. data/lib/caboodle/kits/susy/views/susy/ie.scss +10 -0
  36. data/lib/caboodle/kits/susy/views/susy/print.scss +33 -0
  37. data/lib/caboodle/{app/stylesheets → kits/susy/views/susy}/screen.scss +11 -55
  38. data/lib/caboodle/kits/twitter/twitter.rb +3 -1
  39. data/lib/caboodle/kits/twitter/views/twitter.scss +28 -0
  40. metadata +26 -15
  41. data/lib/caboodle/app/public/stylesheets/ie.css +0 -1
  42. data/lib/caboodle/app/public/stylesheets/print.css +0 -122
  43. data/lib/caboodle/app/public/stylesheets/screen.css +0 -196
  44. data/lib/caboodle/kits/portfolio/portfolio.rb +0 -20
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -2,4 +2,6 @@ has_footer: true
2
2
  has_caboodle_link: true
3
3
  kits:
4
4
  - Posterous
5
- - Skimmed
5
+ - Skimmed
6
+ - Susy
7
+ - Jquery
@@ -1,6 +1,7 @@
1
1
  !!!
2
2
  %html{:dir => "ltr", :lang => "en-US", :xmlns => "http://www.w3.org/1999/xhtml"}
3
3
  %head{:profile => "http://gmpg.org/xfn/11"}
4
+ %link{:href => Caboodle::Site.url_base, :rel => "index", :title => Caboodle::Site.title}/
4
5
  %meta{:content => "text/html; charset=utf-8", "http-equiv" => "content-type"}/
5
6
  %meta{:content => "index,follow", :name => "robots"}/
6
7
  %meta{:content => "Caboodle", :name => "generator"}/
@@ -8,26 +9,20 @@
8
9
  = meta
9
10
 
10
11
  %title= title
11
- %link{:href => "/stylesheets/screen.css", :rel => "stylesheet", :type => "text/css"}/
12
12
 
13
13
  - Caboodle::Stylesheets.each do |css|
14
- %link{:rel => "stylesheet", :rel => css, :type => "text/css"}
15
-
16
- %link{:href => Caboodle::Site.url_base, :rel => "index", :title => Caboodle::Site.title}/
14
+ %link{:rel => "stylesheet", :href => css, :type => "text/css"}
17
15
 
18
- %script{:charset => "utf-8", :src => "http://ajax.googleapis.com/ajax/libs/jquery/#{Caboodle::Site.jquery_version || "1.4.2"}/jquery.min.js", :type => "text/javascript"}
19
- %script{:charset => "utf-8", :src => "/js/application.js", :type => "text/javascript"}
20
-
21
16
  - Caboodle::Javascripts.each do |js|
22
17
  %script{:charset => "utf-8", :src => js, :type => "text/javascript"}
23
-
18
+
19
+ %script{:charset => "utf-8", :src => "/js/application.js", :type => "text/javascript"}
20
+
24
21
  - Caboodle::RSS.each do |rss|
25
22
  %link{:href => rss, :rel => "alternate", :type => "application/rss+xml"}/
26
23
 
27
24
  = head
28
-
29
- = root
30
-
25
+
31
26
  %body.caboodle
32
27
  = before_page
33
28
  #page.hfeed
@@ -82,16 +77,23 @@
82
77
  = below_social
83
78
  = after_social
84
79
  = before_content
80
+ - if Caboodle::Errors.size > 0
81
+ %section#errors
82
+ - Caboodle::Errors.each do |err|
83
+ %h2
84
+ = err.title
85
+ %p.reason
86
+ = err.reason
85
87
  %section#content
86
88
  = above_content
87
89
  = yield
88
90
  = below_content
89
91
  = after_content
90
- - if credit
92
+ - if self.credit_link
91
93
  = before_credit
92
94
  %section#credit
93
95
  = above_credit
94
- = credit
96
+ = self.credit_link
95
97
  = below_credit
96
98
  = after_credit
97
99
  = after_main
@@ -0,0 +1,140 @@
1
+ /* Welcome to Susy. Use this file to define screen styles.
2
+ * Import this file using the following HTML or equivalent:
3
+ * <link href="/stylesheets/screen.css" media="screen" rel="stylesheet" type="text/css" /> */
4
+
5
+ // Imports --------------------------------------------------------------*/
6
+
7
+ @import "defaults";
8
+
9
+ /* Layout --------------------------------------------------------------*/
10
+
11
+ @include susy;
12
+
13
+ // change '#page' to match your HTML container element(s)
14
+ #page {
15
+ @include container;
16
+ //@include show-grid("grid.png");
17
+ @include sans-family;
18
+ }
19
+
20
+ // show-grid loads a 64+16x24 grid image by default
21
+ // For other grid settings, run `compass grid-img 30+10x20`
22
+ // Where 30 is the column width, 10 is the gutter width,
23
+ // and 20 is the (optional) line-height.
24
+
25
+ /* Styles --------------------------------------------------------------*/
26
+
27
+ header#site-header {
28
+ @include full;
29
+ @include leader(6,32px);
30
+ @include trailer(2,32px);
31
+ #logo {
32
+ @include columns(1,12);
33
+ @include prefix(1);
34
+ img {
35
+ width: 64px;
36
+ height: auto;
37
+
38
+ }
39
+ }
40
+ #site-title {
41
+ @include columns(5,12);
42
+ h1{
43
+ @include adjust-font-size-to(24px);
44
+ color: black;
45
+ }
46
+ }
47
+ #site-description {
48
+ @include columns(5,12);
49
+ h2 {
50
+ @include adjust-font-size-to(24px);
51
+ color: #ddd;
52
+ }
53
+ }
54
+ #access {
55
+ @include skip-link();
56
+ }
57
+ nav {
58
+ @include trailer(1,32px);
59
+ @include prefix(2);
60
+ ul {
61
+ @include inline-block-list(12px);
62
+ li {
63
+ @include slab-family;
64
+ }
65
+ }
66
+ }
67
+ }
68
+
69
+ section#main {
70
+ @include full;
71
+ header#page_title
72
+ {
73
+ h1, h2 {
74
+ @include adjust-font-size-to(48px);
75
+ color: #aaa;
76
+ @include prefix(2);
77
+ }
78
+ }
79
+ section#content {
80
+ min-height: 320px;
81
+ @include prefix(0);
82
+ @include columns(12,12);
83
+ @include leader(1,32px);
84
+ h1, h2 {
85
+ @include adjust-font-size-to(24px);
86
+ }
87
+ article {
88
+ @include trailer(2,32px);
89
+ aside {
90
+ color: #aaa;
91
+ a {
92
+ color: #999;
93
+ }
94
+ }
95
+ }
96
+ }
97
+ aside#sidebar {
98
+ @include columns(2,12);
99
+ ul {
100
+ @include no-style-list;
101
+ }
102
+ }
103
+ }
104
+
105
+ footer {
106
+ @include prefix(2);
107
+ @include full;
108
+ @include slab-family;
109
+ }
110
+
111
+ section.subsection {
112
+ @include columns(12,12);
113
+ aside.submenu {
114
+ @include columns(2,12);
115
+ ul {
116
+ @include no-style-list;
117
+ @include adjust-font-size-to(12px);
118
+ }
119
+ }
120
+
121
+ section.subpage {
122
+ @include columns(9,12);
123
+ }
124
+ }
125
+
126
+ .page {
127
+ @include prefix(2);
128
+ iframe {
129
+ width: 580px;
130
+ height: 580px;
131
+ background-color: #eee;
132
+ padding: 32px;
133
+ overflow: hidden;
134
+ scroll: none;
135
+ }
136
+ }
137
+
138
+ #testing {
139
+ background-color: red;
140
+ }
data/lib/caboodle/app.rb CHANGED
@@ -1,32 +1,17 @@
1
1
  module Caboodle
2
- class App < Sinatra::Base
3
- register Sinatra::Compass
4
-
2
+ class App < Sinatra::Base
3
+
5
4
  set :app_file, __FILE__
6
5
  set :logging, true
7
6
  set :root, File.expand_path(".")
8
7
  set :views, Proc.new { File.join(root, "views") }
9
8
  set :public, Proc.new { File.join(root, "public") }
10
- #disable :run, :reload
11
- # set :compass, :sass_dir => File.join(root, "stylesheets")
12
- #
13
- # get_compass("/css/:name.css") do
14
- # compass :one_stylesheet
15
- # end
16
9
 
17
10
  helpers Sinatra::CaboodleHelpers
18
-
11
+
19
12
  configure do
20
- config_path = File.expand_path(File.join(root,"config","site.yml"))
21
- if File.exists?(config_path)
22
- Caboodle::Kit.load_config(config_path)
23
- Caboodle::Kit.setup
24
- end
13
+ Caboodle::Kit.configure
25
14
  end
26
- # get '/:kit/stylesheet.css' do
27
- # header 'Content-Type' => 'text/css; charset=utf-8'
28
- # sass :stylesheet
29
- # end
30
15
 
31
16
  end
32
17
  end
@@ -12,6 +12,7 @@ module Caboodle
12
12
  puts `cd #{args.first} && cp -r #{File.expand_path(File.join(File.dirname(__FILE__), 'app'))}/* .`
13
13
  puts `cd #{args.first} && cp #{File.expand_path(File.join(File.dirname(__FILE__), 'app'))}/.gems .`
14
14
  puts `cd #{args.first} && git init`
15
+ Caboodle::Kit.configure
15
16
  puts `cd #{args.first} && git add .`
16
17
  puts `cd #{args.first} && git commit -m"initial setup"`
17
18
  puts `cd #{args.first} && heroku create #{args.first}`
@@ -4,7 +4,8 @@ module Caboodle
4
4
  Javascripts = []
5
5
  Stylesheets = []
6
6
  RSS = []
7
-
7
+ SASS = []
8
+ Errors = []
8
9
  Defaults = Hashie::Mash.new(Hashie::Mash.new(YAML.load_file(File.join(File.dirname(__FILE__), 'config','defaults.yml'))))
9
10
  RequiredSettings = Hashie::Mash.new()
10
11
  Layout = Hashie::Mash.new()
@@ -5,10 +5,6 @@ module Sinatra
5
5
  Caboodle::Layout[arg]
6
6
  end
7
7
 
8
- def credit
9
- #Caboodle::Kit.credit
10
- end
11
-
12
8
  def title
13
9
  if request.path_info == "/"
14
10
  "#{Caboodle::Site.title} | #{Caboodle::Site.description}"
data/lib/caboodle/kit.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  module Caboodle
2
2
 
3
3
  class Kit < Sinatra::Base
4
- #register Sinatra::Compass
5
4
 
6
5
  set :app_file, __FILE__
7
6
  set :logging, true
@@ -21,6 +20,15 @@ module Caboodle
21
20
  end
22
21
 
23
22
  class << self
23
+ attr_accessor :credit_link
24
+
25
+ def configure
26
+ config_path = File.expand_path(File.join(Caboodle::App.root,"config","site.yml"))
27
+ if File.exists?(config_path)
28
+ Caboodle::Kit.load_config(config_path)
29
+ Caboodle::Kit.setup
30
+ end
31
+ end
24
32
 
25
33
  def inherited subclass
26
34
  c = caller[0].split(":")
@@ -45,12 +53,16 @@ module Caboodle
45
53
  end
46
54
 
47
55
  def dump_config
48
- puts "Dump config"
49
- p = File.expand_path(File.join(Caboodle::App.root,"config","site.yml"))
50
- d = Caboodle::Site.clone
51
- e = d.to_hash
52
- e.delete("required_settings")
53
- File.open(p, 'w') {|f| f.write(YAML::dump(e))}
56
+ begin
57
+ puts "Dump config"
58
+ p = File.expand_path(File.join(Caboodle::App.root,"config","site.yml"))
59
+ d = Caboodle::Site.clone
60
+ e = d.to_hash
61
+ e.delete("required_settings")
62
+ File.open(p, 'w') {|f| f.write(YAML::dump(e))}
63
+ rescue
64
+ puts "Cannot write config file"
65
+ end
54
66
  end
55
67
 
56
68
  def setup
@@ -155,6 +167,15 @@ module Caboodle
155
167
  Caboodle::Stylesheets.uniq!
156
168
  end
157
169
 
170
+ def add_sass array_of_sass_files
171
+ if array_of_sass_files.class == Array
172
+ array_of_sass_files.each { |a| Caboodle::SASS << a.to_s }
173
+ else
174
+ Caboodle::SASS << array_of_sass_files.to_s
175
+ end
176
+ Caboodle::SASS.uniq!
177
+ end
178
+
158
179
  alias_method :stylesheet, :stylesheets
159
180
 
160
181
  def javascripts array_of_js_files
@@ -195,8 +216,11 @@ module Caboodle
195
216
  end
196
217
  end
197
218
 
198
- def original url
199
- set :credit, "<a href='#{url}' rel='me'>via #{self.class.name.split("::").last}</a>"
219
+ def credit url
220
+ #todo there must be an easier way
221
+ class_eval "def credit_link
222
+ \"<a rel='me' href='#{url}' rel='me'>#{self.name.split("::").last}</a>\"
223
+ end"
200
224
  end
201
225
 
202
226
  def required_settings
@@ -218,6 +242,7 @@ module Caboodle
218
242
  STDERR.puts " "
219
243
  STDERR.puts "Warning - #{self.ancestors.first} is disabled because:"
220
244
  STDERR.puts errors.join("\n")
245
+ Caboodle::Errors << Hashie::Mash.new(:title=>"#{self.ancestors.first} is disable", :reason=>errors.join(";"))
221
246
  end
222
247
  end
223
248
  end
@@ -0,0 +1,13 @@
1
+ module Caboodle
2
+ class Carbonmade < Caboodle::Kit
3
+
4
+ menu "Portfolio", "/portfolio" do
5
+ @title = "Portfolio"
6
+ haml :carbonmade
7
+ end
8
+
9
+ required [:carbonmade_url]
10
+
11
+ credit Caboodle::Site.carbonmade_url
12
+ end
13
+ end
@@ -0,0 +1,2 @@
1
+ #carbonmade.page
2
+ %iframe#carbonmade{:scrolling=>"no",:src=>Caboodle::Site.carbonmade_url}
@@ -62,6 +62,8 @@ module Caboodle
62
62
 
63
63
  javascripts ["/galleria.noconflict.min.js"]
64
64
 
65
- original "http://flickr.com/#{Caboodle::Site.flickr_username}"
65
+ add_sass ["photography"]
66
+
67
+ credit "http://flickr.com/#{Caboodle::Site.flickr_username}"
66
68
  end
67
69
  end
@@ -0,0 +1,24 @@
1
+ #galleria_gallery {
2
+ @include columns(10,10);
3
+ #main_image {
4
+ @include trailer(2,32px);
5
+ min-height: 320px;
6
+ min-width: 532px;
7
+ background-color: #f6f6f6;
8
+ text-align: center;
9
+ padding: 16px;
10
+ img {
11
+ vertical-align: middle;
12
+ @include box-shadow(0px, 0px, 32px, #aaaaaa);
13
+ }
14
+ }
15
+ #gallery.gallery {
16
+ @include columns(10,10);
17
+ ul {
18
+ @include no-style-list;
19
+ li {
20
+ display: inline-block;
21
+ }
22
+ }
23
+ }
24
+ }
@@ -19,7 +19,7 @@ module Caboodle
19
19
 
20
20
  defaults []
21
21
 
22
- original "http://gitbhu.com/#{Site.github_username}"
22
+ credit "http://gitbhu.com/#{Site.github_username}"
23
23
  end
24
24
 
25
25
  class GithubAPI < Weary::Base
@@ -0,0 +1,40 @@
1
+ gem "sinatra-compass"
2
+ require "sinatra/compass"
3
+
4
+ gem "compass-susy-plugin"
5
+ require "susy"
6
+
7
+ require "compass"
8
+ require "sinatra/base"
9
+ require "sinatra/sugar"
10
+ require "sinatra/advanced_routes"
11
+
12
+
13
+ module Caboodle
14
+ class History < Caboodle::Kit
15
+
16
+ configure do
17
+ config_path = File.expand_path(File.join(Caboodle::App.root,"config","history.yml"))
18
+ if File.exists?(config_path)
19
+ Caboodle::Kit.load_config(config_path)
20
+ else
21
+ `cp "#{File.join(File.dirname(__FILE__),"config","history.yml")}" "#{File.join(Caboodle::App.root,"config",".")}"` rescue "Could not create the sample yml file"
22
+ puts "Please enter your history items in the file #{File.expand_path(File.join(Caboodle::App.root,"config","history.yml"))}"
23
+ end
24
+ end
25
+
26
+ menu "History", "/history" do
27
+ @title = "History"
28
+ haml :history
29
+ end
30
+
31
+ get("/history/:name.css") do
32
+ content_type 'text/css', :charset => 'utf-8'
33
+ options = {:sass_dir => File.join(File.dirname(__FILE__),"views"), :syntax=>:scss}
34
+ sass :"#{params[:name]}", options.merge!(::Compass.sass_engine_options)
35
+ end
36
+
37
+ add_sass ["history"]
38
+
39
+ end
40
+ end
@@ -1,12 +1,12 @@
1
1
  - #todo - this should be a vcalendar
2
- #portfolio.page
2
+ #history.page
3
3
  %dl
4
- - if Caboodle::Site.portfolio_years.respond_to?(:sort)
5
- - Caboodle::Site.portfolio_years.sort.reverse.each do |year,items|
4
+ - if Caboodle::Site.history_years.respond_to?(:sort)
5
+ - Caboodle::Site.history_years.sort.reverse.each do |year,items|
6
6
  %dt.year{:class=>year}
7
7
  = year
8
8
  %dd
9
- %ul.portfolio_items
9
+ %ul.history_items
10
10
  - if items.respond_to?(:each)
11
11
  - items.each do |item|
12
12
  %li.portfolio_item{:class=>item.tags}
@@ -0,0 +1,21 @@
1
+
2
+ #history {
3
+ dl {
4
+ @include no-style-list;
5
+ border: 0px !important;
6
+ dt {
7
+ @include adjust-font-size-to(24px);
8
+ @include slab-family;
9
+ @include columns(1,6);
10
+ border: 0px !important;
11
+ }
12
+ dd {
13
+ @include columns(4,6);
14
+ border: 0px !important;
15
+ .awards {
16
+ @include adjust-font-size-to(12px);
17
+ }
18
+ }
19
+ }
20
+ }
21
+
@@ -0,0 +1,5 @@
1
+ module Caboodle
2
+ class Jquery < Caboodle::Kit
3
+ javascripts ["http://ajax.googleapis.com/ajax/libs/jquery/#{Caboodle::Site.jquery_version || "1.4.2"}/jquery.min.js"]
4
+ end
5
+ end
@@ -24,6 +24,9 @@ module Caboodle
24
24
 
25
25
  required [:linkedin_full_name, :linkedin_profile_url]
26
26
 
27
- original Caboodle::Site.linkedin_profile_url
27
+ credit Caboodle::Site.linkedin_profile_url
28
+
29
+ add_sass ["linkedin"]
30
+
28
31
  end
29
32
  end
@@ -1,4 +1,4 @@
1
- .page.linkedin
1
+ .page#linkedin
2
2
  - if @linkedin
3
3
  = @linkedin.full
4
4
  - else
@@ -0,0 +1,61 @@
1
+ #linkedin{
2
+ #additional-information{
3
+ h2 + h3 {
4
+ display: none;
5
+ }
6
+ }
7
+
8
+ #additional-information {
9
+ .websites {
10
+ display: none;
11
+ }
12
+ }
13
+ #contact-settings, .affiliation {
14
+ display :none;
15
+ }
16
+ @include adjust-font-size-to(14px);
17
+ .showhide-link, .connections, .recommended, hr {
18
+ display: none;
19
+ }
20
+ h2 {
21
+ @include adjust-font-size-to(32px);
22
+ @include leader(2,32px);
23
+ @include trailing-border(2px,1,32px, solid);
24
+ }
25
+
26
+ h3, dt {
27
+ @include adjust-font-size-to(24px);
28
+ @include slab-family;
29
+ }
30
+
31
+ ul.vcalendar {
32
+ padding-left: 32px;
33
+ background-color: #eee;
34
+ @include padding-leader(1,32px);
35
+ @include padding-trailer(1,32px);
36
+ }
37
+
38
+ #summary {
39
+
40
+ }
41
+ #overview {
42
+ @include trailer(2,32px);
43
+ @include columns(8,8);
44
+ -moz-column-count: 2;
45
+ -moz-column-gap: 32px;
46
+ -webkit-column-count: 2;
47
+ -webkit-column-gap: 32px;
48
+ column-count: 2;
49
+ column-gap: 32px;
50
+ dl {
51
+ dt {
52
+
53
+ }
54
+ dd {
55
+
56
+ }
57
+ }
58
+ }
59
+
60
+ }
61
+
@@ -8,6 +8,6 @@ module Caboodle
8
8
 
9
9
  required [:onepage_username]
10
10
 
11
- original "http://myonepage.com/#{Caboodle::Site.onepage_username}"
11
+ credit "http://myonepage.com/#{Caboodle::Site.onepage_username}"
12
12
  end
13
13
  end
@@ -132,7 +132,7 @@ module Caboodle
132
132
 
133
133
  class Posterous < Caboodle::Kit
134
134
 
135
- get "/blog/:page_number" do |page_number|
135
+ get "/posterous/:page_number" do |page_number|
136
136
  @posts = PosterousPost.page(page_number) rescue nil
137
137
  not_found if @posts.class == Array && @posts.blank?
138
138
  haml :posts
@@ -147,8 +147,8 @@ module Caboodle
147
147
  haml :post, :locals => { :post => post }
148
148
  end
149
149
 
150
- menu "Blog", "/blog" do
151
- @posts = PosterousPost.all(:page=>(params[:page] || 1))
150
+ menu "Blog", "/posterous" do
151
+ @posts = PosterousPost.all(:page=>(params[:page] || 1)) rescue []
152
152
  haml :posts.to_sym
153
153
  end
154
154
 
@@ -158,7 +158,9 @@ module Caboodle
158
158
 
159
159
  rss ["feed://stef.posterous.com/rss.xml"]
160
160
 
161
- original "http://#{Caboodle::Site.posterous_sitename}.posterous.com"
161
+ credit "http://#{Caboodle::Site.posterous_sitename}.posterous.com"
162
+
163
+ add_sass ["posterous"]
162
164
  end
163
165
  end
164
166
 
@@ -0,0 +1,17 @@
1
+ .posterous {
2
+ @include prefix(2);
3
+ #pagination {
4
+ @include leader(3,32px);
5
+ @include trailer(3,32px);
6
+ font-weight: bold;
7
+ }
8
+ @include columns(6,10);
9
+ article {
10
+ h2 > a {
11
+ display: none;
12
+ }
13
+ h2.entry-title a {
14
+ display: inline !important;
15
+ }
16
+ }
17
+ }