From e0bfeb11c708100b0b187a8e88331b8e72291ffc Mon Sep 17 00:00:00 2001 From: "Yann Esposito (Yogsototh)" Date: Mon, 11 Jul 2011 11:27:12 +0200 Subject: [PATCH] bodyclass helper By default the body is assigned the class std if some define <% content_for :bodyclass do%>clear<%done%> then the class of body is changed to clear, making it easy to switch style in css --- content/html/en/index.md | 1 + content/html/fr/index.md | 1 + layouts/article.html | 2 +- layouts/main.html | 2 +- lib/html.rb | 9 +++++++++ lib/y.rb | 2 +- multi/index.md | 1 + .../en/blog/2011-05-05-Screenshots/index.html | 2 +- site/Scratch/en/blog/feed/feed.xml | 10 +++------- site/Scratch/en/blog/index.html | 2 +- site/Scratch/en/index.html | 2 +- site/Scratch/en/support/index.html | 2 +- .../fr/blog/2011-05-05-Screenshots/index.html | 2 +- site/Scratch/fr/blog/feed/feed.xml | 10 +++------- site/Scratch/fr/blog/index.html | 2 +- site/Scratch/fr/index.html | 2 +- site/Scratch/fr/support/index.html | 2 +- site/Scratch/sitemap.xml | 11 +++++++++++ site/css/main.css | 18 +++++------------- site/index.html | 2 +- site/src/main.sass | 9 +-------- 21 files changed, 47 insertions(+), 47 deletions(-) diff --git a/content/html/en/index.md b/content/html/en/index.md index 3c0b5c5..6531b5a 100644 --- a/content/html/en/index.md +++ b/content/html/en/index.md @@ -6,6 +6,7 @@ menupriority: 1 <% content_for :title do %> Get it! » <% end %> +<% content_for :bodyclass do %>clear<% end %>
Main Password View diff --git a/content/html/fr/index.md b/content/html/fr/index.md index 3c0b5c5..6531b5a 100644 --- a/content/html/fr/index.md +++ b/content/html/fr/index.md @@ -6,6 +6,7 @@ menupriority: 1 <% content_for :title do %> Get it! » <% end %> +<% content_for :bodyclass do %>clear<% end %>
Main Password View diff --git a/layouts/article.html b/layouts/article.html index 40b89f2..cd2289a 100644 --- a/layouts/article.html +++ b/layouts/article.html @@ -48,7 +48,7 @@ - +
<%= choixrss %>
<%= choixlang %>
diff --git a/layouts/main.html b/layouts/main.html index d086f97..1a90bf6 100644 --- a/layouts/main.html +++ b/layouts/main.html @@ -39,7 +39,7 @@ - +
\n\n
\n} + %{\n\n\n
\n} end.gsub(/^.*begindiv\((.*)\).*$/) do %{\n
\n} end.gsub(/^.*enddiv.*$/) do diff --git a/multi/index.md b/multi/index.md index 3c0b5c5..6531b5a 100644 --- a/multi/index.md +++ b/multi/index.md @@ -6,6 +6,7 @@ menupriority: 1 <% content_for :title do %> Get it! » <% end %> +<% content_for :bodyclass do %>clear<% end %>
Main Password View diff --git a/site/Scratch/en/blog/2011-05-05-Screenshots/index.html b/site/Scratch/en/blog/2011-05-05-Screenshots/index.html index e962551..0d9330c 100644 --- a/site/Scratch/en/blog/2011-05-05-Screenshots/index.html +++ b/site/Scratch/en/blog/2011-05-05-Screenshots/index.html @@ -48,7 +48,7 @@ - +
diff --git a/site/Scratch/en/blog/feed/feed.xml b/site/Scratch/en/blog/feed/feed.xml index 1f17aa6..01f8249 100644 --- a/site/Scratch/en/blog/feed/feed.xml +++ b/site/Scratch/en/blog/feed/feed.xml @@ -3,8 +3,8 @@ http://ypassword.espozito.com/ Yogsototh's last blogs entries 2011-05-05T09:27:11Z - - + + Yann Esposito http://yannesposito.com @@ -14,11 +14,7 @@ Screenshots 2011-05-05T09:27:11Z 2011-05-05T09:27:11Z - - Yann Esposito - yannesposito.com - - + <div class="intro"> diff --git a/site/Scratch/en/blog/index.html b/site/Scratch/en/blog/index.html index 329fb6a..e345664 100644 --- a/site/Scratch/en/blog/index.html +++ b/site/Scratch/en/blog/index.html @@ -39,7 +39,7 @@ - +