Navigation Menu

Skip to content

Commit

Permalink
modified to look the way I want it to
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesbowkett committed Jun 25, 2009
1 parent 3d13293 commit b7fadcf
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 37 deletions.
6 changes: 3 additions & 3 deletions main.rb
Expand Up @@ -9,8 +9,8 @@


require 'ostruct' require 'ostruct'
Blog = OpenStruct.new( Blog = OpenStruct.new(
:title => 'a scanty blog', :title => "i'm vacationing in sunny nassau",
:author => 'John Doe', :author => 'Giles Bowkett',
:url_base => 'http://localhost:4567/', :url_base => 'http://localhost:4567/',
:admin_password => 'changeme', :admin_password => 'changeme',
:admin_cookie_key => 'scanty_admin', :admin_cookie_key => 'scanty_admin',
Expand Down Expand Up @@ -52,7 +52,7 @@ def auth
post = Post.filter(:slug => params[:slug]).first post = Post.filter(:slug => params[:slug]).first
stop [ 404, "Page not found" ] unless post stop [ 404, "Page not found" ] unless post
@title = post.title @title = post.title
erb :post, :locals => { :post => post } erb :post, :locals => { :post => post }, :layout => false
end end


get '/past/:year/:month/:day/:slug' do get '/past/:year/:month/:day/:slug' do
Expand Down
37 changes: 20 additions & 17 deletions public/main.css
Expand Up @@ -2,17 +2,19 @@ body {
margin: 0px; margin: 0px;
padding: 20px; padding: 20px;
margin-left: 50px; margin-left: 50px;
background: #0A0A0D; background: #FFB90F;
text-align: justify; text-align: justify;
font: 14px "Trebuchet MS", Arial, Helvetica, sans-serif; font: 14px Futura, "Gill Sans", Helvetica, sans-serif;
color: #FFFFDC; color: #FFFFDC;
background-image: url("/shades.jpg");
background-repeat: no-repeat;
} }


h1, h2, h3 { h1, h2, h3 {
font: 1.82em; font: 1.82em;
font-weight: normal; font-weight: normal;
font-family: Arial, Helvetica, sans-serif; font-family: Futura, "Gill Sans", Helvetica, sans-serif;
color: #FFFFFF; color: #000000;
text-align: left; text-align: left;
} }


Expand All @@ -25,7 +27,7 @@ ul {
} }


a { a {
color: #828170; color: #EE7621;
} }


a:hover { a:hover {
Expand All @@ -41,7 +43,7 @@ hr {
#logo h1 { #logo h1 {
margin: 0; margin: 0;
height: 160px; height: 160px;
padding: 40px 0 0 0px; padding: 120px 0 0 0px;
text-transform: lowercase; text-transform: lowercase;
letter-spacing: -2px; letter-spacing: -2px;
font-size: 4em; font-size: 4em;
Expand All @@ -52,14 +54,15 @@ hr {
#logo h1 a { #logo h1 a {
display: block; display: block;
text-decoration: none; text-decoration: none;
color: #FFFFFF; color: #000000;
} }


#logo p { #logo p {
margin: -103px 0 0 2px; margin: -103px 0 0 2px;
text-transform: uppercase; text-transform: uppercase;
font-family: Tahoma, Arial, Helvetica, sans-serif; font-family: Futura, "Gill Sans", Helvetica, sans-serif;
font-weight: bold; font-weight: bold;
color: #EE7621;
} }


#logo a { #logo a {
Expand All @@ -71,7 +74,7 @@ hr {
#logo2 h1 { #logo2 h1 {
margin: 0; margin: 0;
height: 130px; height: 130px;
padding: 40px 0 0 0px; padding: 120px 0 0 0px;
text-transform: lowercase; text-transform: lowercase;
letter-spacing: -2px; letter-spacing: -2px;
font-size: 2em; font-size: 2em;
Expand All @@ -82,7 +85,7 @@ hr {
#logo2 h1 a { #logo2 h1 a {
display: block; display: block;
text-decoration: none; text-decoration: none;
color: #FFFFFF; color: #000000;
} }


#logo2 p { #logo2 p {
Expand All @@ -95,7 +98,7 @@ hr {
#logo2 a { #logo2 a {
display: block; display: block;
text-decoration: none; text-decoration: none;
color: #FFFFFF; color: #ee7621;
} }


/* Content */ /* Content */
Expand Down Expand Up @@ -126,7 +129,7 @@ hr {
text-align: center; text-align: center;
font-size: 10px; font-size: 10px;
font-weight: bold; font-weight: bold;
color: #999999; color: #000000;
} }


.post .date b { .post .date b {
Expand All @@ -135,7 +138,7 @@ hr {
display: block; display: block;
margin-top: -5px; margin-top: -5px;
font-size: 14px; font-size: 14px;
color: #5C5C5C; color: #ff8c00;


} }


Expand All @@ -157,11 +160,11 @@ hr {
padding: 0; padding: 0;
line-height:normal; line-height:normal;
text-transform: uppercase; text-transform: uppercase;
color: #979680; color: #CD6600;
} }


.post .meta a { .post .meta a {
color: #828170; color: #CD6600;
} }


.post .entry { .post .entry {
Expand Down Expand Up @@ -229,13 +232,13 @@ hr {
margin: 0; margin: 0;
padding: 10px 0; padding: 10px 0;
font-size: 10px; font-size: 10px;
color: #525252; color: #FFEC8B;
} }


/* Archive */ /* Archive */
.archive .date { .archive .date {
font-size: 85%; font-size: 85%;
color: #828170; color: #cd6600;
} }


.archive .title a { .archive .title a {
Expand Down
Binary file added public/shades.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions views/index.erb
Expand Up @@ -65,8 +65,9 @@


<div id="footer"> <div id="footer">
<p id="legal"> <p id="legal">
Content by <%= Blog.author %> | 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> </div>
</body> </body>
</html> </html>
3 changes: 2 additions & 1 deletion views/layout.erb
Expand Up @@ -19,7 +19,8 @@
<div id="footer"> <div id="footer">
<p id="legal"> <p id="legal">
Content by <%= Blog.author %> | 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> </div>
</body> </body>
</html> </html>
21 changes: 7 additions & 14 deletions views/post.erb
@@ -1,15 +1,8 @@
<div class="postzoom"> <% # post.title
<h2 class="title"><%= post.title %></h2> # post.linked_tags
<p class="meta"><small><%= post.linked_tags %></small></p> # post.created_at
<p class="meta"><%= post.created_at %></p> # post.url if admin?
<div class="entry"> %>
<%= post.body_html %>
</div> <%= post.body_html %>
<% if admin? %>
<div class="edit"><a href="<%= post.url %>edit">edit</a></div>
<% end %>
</div>


<% 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 %>

0 comments on commit b7fadcf

Please sign in to comment.