Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

modified to look the way I want it to

  • Loading branch information...
commit b7fadcf6cd0fa9bd8004006c183e3ddf0b60bc36 1 parent 3d13293
@gilesbowkett authored
View
6 main.rb
@@ -9,8 +9,8 @@
require 'ostruct'
Blog = OpenStruct.new(
- :title => 'a scanty blog',
- :author => 'John Doe',
+ :title => "i'm vacationing in sunny nassau",
+ :author => 'Giles Bowkett',
:url_base => 'http://localhost:4567/',
:admin_password => 'changeme',
:admin_cookie_key => 'scanty_admin',
@@ -52,7 +52,7 @@ def auth
post = Post.filter(:slug => params[:slug]).first
stop [ 404, "Page not found" ] unless post
@title = post.title
- erb :post, :locals => { :post => post }
+ erb :post, :locals => { :post => post }, :layout => false
end
get '/past/:year/:month/:day/:slug' do
View
37 public/main.css
@@ -2,17 +2,19 @@ body {
margin: 0px;
padding: 20px;
margin-left: 50px;
- background: #0A0A0D;
+ background: #FFB90F;
text-align: justify;
- font: 14px "Trebuchet MS", Arial, Helvetica, sans-serif;
+ font: 14px Futura, "Gill Sans", Helvetica, sans-serif;
color: #FFFFDC;
+ background-image: url("/shades.jpg");
+ background-repeat: no-repeat;
}
h1, h2, h3 {
font: 1.82em;
font-weight: normal;
- font-family: Arial, Helvetica, sans-serif;
- color: #FFFFFF;
+ font-family: Futura, "Gill Sans", Helvetica, sans-serif;
+ color: #000000;
text-align: left;
}
@@ -25,7 +27,7 @@ ul {
}
a {
- color: #828170;
+ color: #EE7621;
}
a:hover {
@@ -41,7 +43,7 @@ hr {
#logo h1 {
margin: 0;
height: 160px;
- padding: 40px 0 0 0px;
+ padding: 120px 0 0 0px;
text-transform: lowercase;
letter-spacing: -2px;
font-size: 4em;
@@ -52,14 +54,15 @@ hr {
#logo h1 a {
display: block;
text-decoration: none;
- color: #FFFFFF;
+ color: #000000;
}
#logo p {
margin: -103px 0 0 2px;
text-transform: uppercase;
- font-family: Tahoma, Arial, Helvetica, sans-serif;
+ font-family: Futura, "Gill Sans", Helvetica, sans-serif;
font-weight: bold;
+ color: #EE7621;
}
#logo a {
@@ -71,7 +74,7 @@ hr {
#logo2 h1 {
margin: 0;
height: 130px;
- padding: 40px 0 0 0px;
+ padding: 120px 0 0 0px;
text-transform: lowercase;
letter-spacing: -2px;
font-size: 2em;
@@ -82,7 +85,7 @@ hr {
#logo2 h1 a {
display: block;
text-decoration: none;
- color: #FFFFFF;
+ color: #000000;
}
#logo2 p {
@@ -95,7 +98,7 @@ hr {
#logo2 a {
display: block;
text-decoration: none;
- color: #FFFFFF;
+ color: #ee7621;
}
/* Content */
@@ -126,7 +129,7 @@ hr {
text-align: center;
font-size: 10px;
font-weight: bold;
- color: #999999;
+ color: #000000;
}
.post .date b {
@@ -135,7 +138,7 @@ hr {
display: block;
margin-top: -5px;
font-size: 14px;
- color: #5C5C5C;
+ color: #ff8c00;
}
@@ -157,11 +160,11 @@ hr {
padding: 0;
line-height:normal;
text-transform: uppercase;
- color: #979680;
+ color: #CD6600;
}
.post .meta a {
- color: #828170;
+ color: #CD6600;
}
.post .entry {
@@ -229,13 +232,13 @@ hr {
margin: 0;
padding: 10px 0;
font-size: 10px;
- color: #525252;
+ color: #FFEC8B;
}
/* Archive */
.archive .date {
font-size: 85%;
- color: #828170;
+ color: #cd6600;
}
.archive .title a {
View
BIN  public/shades.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
5 views/index.erb
@@ -65,8 +65,9 @@
<div id="footer">
<p id="legal">
- Content by <%= Blog.author %> |
- Design adapted from <a href="http://www.freecsstemplates.org/preview/replenish">Replenish</a>
+ Content by <%= Blog.author %> |
+ Design adapted from <a href="http://www.freecsstemplates.org/preview/replenish">Replenish</a></br>
+ Based on <a href="">Scanty</a> | Sunglasses by <a href="http://www.flickr.com/photos/enter/11465982/">enter</a>
</div>
</body>
</html>
View
3  views/layout.erb
@@ -19,7 +19,8 @@
<div id="footer">
<p id="legal">
Content by <%= Blog.author %> |
- Design adapted from <a href="http://www.freecsstemplates.org/preview/replenish">Replenish</a>
+ Design adapted from <a href="http://www.freecsstemplates.org/preview/replenish">Replenish</a></br>
+ Based on <a href="">Scanty</a> | Sunglasses by <a href="http://www.flickr.com/photos/enter/11465982/">enter</a>
</div>
</body>
</html>
View
21 views/post.erb
@@ -1,15 +1,8 @@
-<div class="postzoom">
- <h2 class="title"><%= post.title %></h2>
- <p class="meta"><small><%= post.linked_tags %></small></p>
- <p class="meta"><%= post.created_at %></p>
- <div class="entry">
- <%= post.body_html %>
- </div>
- <% if admin? %>
- <div class="edit"><a href="<%= post.url %>edit">edit</a></div>
- <% end %>
-</div>
+<% # post.title
+ # post.linked_tags
+# post.created_at
+# post.url if admin?
+ %>
+
+<%= post.body_html %>
-<% if Blog.disqus_shortname %>
- <div id="disqus_thread"></div><script type="text/javascript" src="http://disqus.com/forums/<%= Blog.disqus_shortname %>/embed.js"></script><noscript><a href="http://<%= Blog.disqus_shortname %>.disqus.com/?url=ref">View the discussion thread.</a></noscript><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
-<% end %>
Please sign in to comment.
Something went wrong with that request. Please try again.