Skip to content
Browse files

fixes

  • Loading branch information...
1 parent e2afd30 commit ee4f6b8ca3f2bbf8898833c453b2916ccdeba0d1 cloudhead committed Nov 19, 2009
View
0 articles/skeleton.txt → ...2009-11-19-the-wonderful-wizard-of-oz.txt
File renamed without changes.
View
7 server.ru
@@ -7,10 +7,13 @@ use Rack::ShowExceptions
use Rack::CommonLogger
# Run application
-run Toto::Server.new do
+toto = Toto::Server.new do
#
# Add your settings here
# set [:setting], [value]
#
- set :time, lambda {|now| now.strftime("%B #{now.day.ordinal} %Y") }
+ set :date, lambda {|now| now.strftime("%B #{now.day.ordinal} %Y") }
end
+
+run toto
+
View
1 templates/layout.rhtml
@@ -1,5 +1,6 @@
<doctype html>
<head>
+ <link rel="stylesheet" type="text/css" href="/css/main.css">
<title><%= title %></title>
</head>
<html>
View
8 templates/article.rhtml → templates/pages/article.rhtml
@@ -1,4 +1,4 @@
-<article>
+<article class="post">
<header>
<h1><%= title %></h1>
<span><%= date %></span>
@@ -9,10 +9,10 @@
</section>
<section class="comments">
- <% if Site[:disqus] %>
+ <% if @config[:disqus] %>
<div id="disqus_thread"></div>
- <script type="text/javascript" src="http://disqus.com/forums/<%= Site[:disqus] %>/embed.js"> </script>
- <noscript><a href="http://<%= Site[:disqus] %>.disqus.com/?url=ref">View the discussion thread.</a></noscript>
+ <script type="text/javascript" src="http://disqus.com/forums/<%= @config[:disqus] %>/embed.js"> </script>
+ <noscript><a href="http://<%= @config[:disqus] %>.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 %>
</section>

0 comments on commit ee4f6b8

Please sign in to comment.
Something went wrong with that request. Please try again.