Skip to content

Commit

Permalink
Merge branch 'release/2011-07-11'
Browse files Browse the repository at this point in the history
  • Loading branch information
sdball committed Jul 12, 2011
2 parents 92b826a + 5f8827f commit 9c3381c
Show file tree
Hide file tree
Showing 13 changed files with 307 additions and 111 deletions.
5 changes: 5 additions & 0 deletions app/controllers/homepage_controller.rb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,5 @@
class HomepageController < ApplicationController
layout 'homepage'
def show
end
end
2 changes: 2 additions & 0 deletions app/helpers/homepage_helper.rb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,2 @@
module HomepageHelper
end
7 changes: 7 additions & 0 deletions app/views/application/_footer.html.erb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,7 @@
<footer>
<section class="container_12">
<div class="grid_12">
<%= enki_config[:title] %> &#169; <%= enki_config[:author, :name] %> 2011. Powered by <a href="http://www.enkiblog.com" title="A Ruby on Rails blogging app for the fashionable developer">Enki</a>.
</div>
</section>
</footer>
8 changes: 8 additions & 0 deletions app/views/homepage/show.html.erb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,8 @@
<section class="grid_6 suffix_6 homepage logo">
<h1>XyzzyB</h1>
<ul>
<li>
<a href="/blog">Blog</a>
</li>
</ul>
</section>
70 changes: 37 additions & 33 deletions app/views/layouts/application.html.erb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,21 +4,30 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title><%= html_title yield(:page_title) %></title> <title><%= html_title yield(:page_title) %></title>
<%= csrf_meta_tag %> <%= csrf_meta_tag %>
<link href="//fonts.googleapis.com/css?family=Vollkorn:regular,italic,bold,bolditalic&amp;subset=latin" rel="stylesheet" type="text/css" > <link href='http://fonts.googleapis.com/css?family=Limelight|Playfair+Display&amp;v2' rel='stylesheet' type='text/css'>
<link href="http://fonts.googleapis.com/css?family=Lato:100,100italic,300,300italic,400,400italic,700,700italic,900,900italic" rel="stylesheet" type="text/css" >
<%= stylesheet_link_tag 'reset', '960', 'text', 'xyzzyb' %> <%= stylesheet_link_tag 'reset', '960', 'text', 'xyzzyb' %>
<%= javascript_include_tag 'jquery' %> <%= javascript_include_tag 'jquery' %>
<%= javascript_include_tag 'rails' %> <%= javascript_include_tag 'rails' %>
<%= open_id_delegation_link_tags(enki_config[:open_id_delegation, :server], enki_config[:open_id_delegation, :delegate]) if enki_config[:open_id_delegation] %> <%= open_id_delegation_link_tags(enki_config[:open_id_delegation, :server], enki_config[:open_id_delegation, :delegate]) if enki_config[:open_id_delegation] %>
<%= yield(:head) %> <%= yield(:head) %>
</head> </head>
<body> <body class="blog">
<div id="page_container" class="container_16">
<div id="layout" class="grid_10 prefix_3 suffix_3"> <header class="blog">
<header> <section class="container_12">
<section class="grid_12">
<h1><a href="<%= root_url %>"><%= enki_config[:title] %></a></h1> <h1><a href="<%= root_url %>"><%= enki_config[:title] %></a></h1>
<ul> </section>
<li><a href="/archives">Archives</a></li> </section>
</header>

<nav class="blog">
<div class="container_12 clearfix">
<div class="grid_12">
<ul class="topmenu">
<% page_links_for_navigation.each do |link| -%>
<li><%= link_to(link.name, link.url) %></li>
<% end -%>
<li> <li>
<form method="get" id="sform" action="http://www.google.com/search"> <form method="get" id="sform" action="http://www.google.com/search">
<label for="q">Search</label> <label for="q">Search</label>
Expand All @@ -27,34 +36,29 @@
</form> </form>
</li> </li>
</ul> </ul>
</header>
<div id="main">
<%= yield %>
</div> </div>
</div> </div>
</div> </nav>
<footer>
<div class="container_16"> <section class="container_12">
<nav class="grid_8 prefix_2"> <section class="grid_9">
<h2>Pages</h2> <%= yield %>
<ul> </section>
<% page_links_for_navigation.each do |link| -%> <section class="grid_3">
<li><%= link_to(link.name, link.url) %></li> <h2>Tags</h2>
<% end -%> <ul>
</ul> <% category_links_for_navigation.each do |link| -%>
</nav> <li><%= link_to(link.name, link.url) %></li>
<nav class="grid_6"> <% end -%>
<h2>Tags</h2> </ul>
<ul> </section>
<% category_links_for_navigation.each do |link| -%> </section>
<li><%= link_to(link.name, link.url) %></li> <footer class="clearfix">
<% end -%> <section class="container_12">
</ul> <section class="grid_12">
</nav>
<div class="grid_14 prefix_2">
<%= enki_config[:title] %> &#169; <%= enki_config[:author, :name] %>. Powered by <a href="http://www.enkiblog.com" title="A Ruby on Rails blogging app for the fashionable developer">Enki</a>. <%= enki_config[:title] %> &#169; <%= enki_config[:author, :name] %>. Powered by <a href="http://www.enkiblog.com" title="A Ruby on Rails blogging app for the fashionable developer">Enki</a>.
</div> </section>
</div> </section>
</footer> </footer>
<script type="text/javascript"> <script type="text/javascript">


Expand Down
36 changes: 36 additions & 0 deletions app/views/layouts/homepage.html.erb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>
<meta charset="utf-8">
<title><%= html_title yield(:page_title) %></title>
<%= csrf_meta_tag %>
<link href='http://fonts.googleapis.com/css?family=Limelight|Playfair+Display&amp;v2' rel='stylesheet' type='text/css'>
<%= stylesheet_link_tag 'reset', '960', 'text', 'xyzzyb' %>
<%= javascript_include_tag 'jquery' %>
<%= javascript_include_tag 'rails' %>
<%= javascript_include_tag 'jquery.lettering-0.6.1.min.js' %>
<%= javascript_include_tag 'homepage' %>
<%= open_id_delegation_link_tags(enki_config[:open_id_delegation, :server], enki_config[:open_id_delegation, :delegate]) if enki_config[:open_id_delegation] %>
<%= yield(:head) %>
</head>
<body>
<section class="container_12">
<%= yield %>
</section>
<%= render :partial => 'application/footer' %>
<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-8937103-1']);
_gaq.push(['_setDomainName', '.xyzzyb.com']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>
</body>
</html>
28 changes: 15 additions & 13 deletions config/routes.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,20 +14,22 @@


root :to => 'dashboard#show' root :to => 'dashboard#show'
end end

scope "/blog" do
resources :archives, :only => [:index]
resources :pages, :only => [:show]


resources :archives, :only => [:index] constraints :year => /\d{4}/, :month => /\d{2}/, :day => /\d{2}/ do
resources :pages, :only => [:show] post ':year/:month/:day/:slug/comments' => 'comments#index'

get ':year/:month/:day/:slug/comments/new' => 'comments#new'
constraints :year => /\d{4}/, :month => /\d{2}/, :day => /\d{2}/ do get ':year/:month/:day/:slug' => 'posts#show'
post ':year/:month/:day/:slug/comments' => 'comments#index' end
get ':year/:month/:day/:slug/comments/new' => 'comments#new'
get ':year/:month/:day/:slug' => 'posts#show'
end


scope :to => 'posts#index' do scope :to => 'posts#index' do
get 'posts.:format', :as => :formatted_posts get 'posts.:format', :as => :formatted_posts
get '(:tag)', :as => :posts get '(:tag)', :as => :posts
end
end end

root :to => 'posts#index' root :to => 'homepage#show'
end end
3 changes: 3 additions & 0 deletions public/javascripts/homepage.js
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,3 @@
jQuery(document).ready(function($) {
$('.homepage.logo h1').lettering();
});
2 changes: 2 additions & 0 deletions public/javascripts/jquery.lettering-0.6.1.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion public/stylesheets/application.css
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
body body
{ {
color: black; color: black;

font: normal 12px verdana, arial, helvetica, sans-serif; font: normal 12px verdana, arial, helvetica, sans-serif;
line-height: 1.5; line-height: 1.5;
padding: 0px; padding: 0px;
Expand Down
Loading

0 comments on commit 9c3381c

Please sign in to comment.