From a11b56fd9a5749113e533c902cca8fc5e02af52d Mon Sep 17 00:00:00 2001 From: "Yann Esposito (Yogsototh)" Date: Tue, 12 Jul 2011 14:03:38 +0200 Subject: [PATCH] Simplifications --- content/html/en/blog.erb | 6 +++-- content/html/fr/blog.erb | 8 ++++--- multi/blog.erb | 6 ++--- .../en/blog/2011-05-05-Screenshots/index.html | 3 +-- site/Scratch/en/blog/index.html | 23 ++++--------------- site/Scratch/en/index.html | 3 +-- site/Scratch/en/support/index.html | 3 +-- .../fr/blog/2011-05-05-Screenshots/index.html | 3 +-- site/Scratch/fr/blog/index.html | 19 ++++----------- site/Scratch/fr/index.html | 3 +-- site/Scratch/fr/support/index.html | 3 +-- site/Scratch/sitemap.xml | 4 ++-- site/css/main.css | 19 +++++++++------ site/index.html | 3 +-- site/src/main.sass | 3 +++ 15 files changed, 46 insertions(+), 63 deletions(-) diff --git a/content/html/en/blog.erb b/content/html/en/blog.erb index accd6fa..ed9aa1d 100644 --- a/content/html/en/blog.erb +++ b/content/html/en/blog.erb @@ -17,7 +17,7 @@ noSubMenu: true <% end %> <% number_of_articles=5 - number_of_char_for_resume=800 + number_of_char_for_resume=400 language=@item_rep.path.sub(/\/Scratch\//,'').sub(/\/.*$/,'') last_articles = @items.select do |a| a.reps[0].path =~ /\/#{language}\// && a[:kind] == 'article' @@ -44,7 +44,7 @@ Last <%= number_of_articles %> Articles

<%= link_to(a[:title]+%{ »}, a) %>

- <%= repair_html ( excerptize( a.reps[0].compiled_content, {:length => number_of_char_for_resume} ) ) %> + <%= repair_html ( excerptize( a.reps[0].compiled_content, {:length => number_of_char_for_resume} ).gsub(/]*(\/|><\/img)>/,"") ) %>
@@ -65,6 +65,8 @@ Last <%= number_of_articles %> Articles
+
+

Archives

<%= generateBlogSubMenu(language) %> diff --git a/content/html/fr/blog.erb b/content/html/fr/blog.erb index c319dd5..17109d3 100644 --- a/content/html/fr/blog.erb +++ b/content/html/fr/blog.erb @@ -17,7 +17,7 @@ noSubMenu: true <% end %> <% number_of_articles=5 - number_of_char_for_resume=800 + number_of_char_for_resume=400 language=@item_rep.path.sub(/\/Scratch\//,'').sub(/\/.*$/,'') last_articles = @items.select do |a| a.reps[0].path =~ /\/#{language}\// && a[:kind] == 'article' @@ -28,7 +28,7 @@ noSubMenu: true
@@ -44,7 +44,7 @@ Les <%= number_of_articles %> derniers articles

<%= link_to(a[:title]+%{ »}, a) %>

- <%= repair_html ( excerptize( a.reps[0].compiled_content, {:length => number_of_char_for_resume} ) ) %> + <%= repair_html ( excerptize( a.reps[0].compiled_content, {:length => number_of_char_for_resume} ).gsub(/]*(\/|><\/img)>/,"") ) %>
@@ -65,6 +65,8 @@ Les <%= number_of_articles %> derniers articles
+
+

Archives

<%= generateBlogSubMenu(language) %> diff --git a/multi/blog.erb b/multi/blog.erb index 124a992..b03573b 100644 --- a/multi/blog.erb +++ b/multi/blog.erb @@ -17,7 +17,7 @@ noSubMenu: true <% end %> <% number_of_articles=5 - number_of_char_for_resume=800 + number_of_char_for_resume=400 language=@item_rep.path.sub(/\/Scratch\//,'').sub(/\/.*$/,'') last_articles = @items.select do |a| a.reps[0].path =~ /\/#{language}\// && a[:kind] == 'article' @@ -29,7 +29,7 @@ noSubMenu: true
diff --git a/site/Scratch/sitemap.xml b/site/Scratch/sitemap.xml index d3a2097..56868ec 100644 --- a/site/Scratch/sitemap.xml +++ b/site/Scratch/sitemap.xml @@ -6,7 +6,7 @@ http://ypassword.espozito.com/Scratch/fr/blog/ - 2011-07-11 + 2011-07-12 http://ypassword.espozito.com/Scratch/en/support/ @@ -38,7 +38,7 @@ http://ypassword.espozito.com/Scratch/en/blog/ - 2011-07-11 + 2011-07-12 http://ypassword.espozito.com/Scratch/fr/ diff --git a/site/css/main.css b/site/css/main.css index 5f7b511..9e226ec 100644 --- a/site/css/main.css +++ b/site/css/main.css @@ -609,8 +609,13 @@ article article, .archive { article article > *, .archive > * { margin: 20px; } +/* line 318, ../src/main.sass */ +article article .content, .archive .content { + width: 600px; + margin: 0 auto; +} -/* line 319, ../src/main.sass */ +/* line 322, ../src/main.sass */ #hiddenDivs { width: 600px; margin: 1em auto; @@ -633,7 +638,7 @@ article article > *, .archive > * { margin: 20px; } -/* line 327, ../src/main.sass */ +/* line 330, ../src/main.sass */ .archive .button { font-size: 14px; width: 5em; @@ -684,28 +689,28 @@ article article > *, .archive > * { box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px inset, rgba(255, 255, 255, 0.3) 0 1px 3px inset; } -/* line 331, ../src/main.sass */ +/* line 334, ../src/main.sass */ .return { float: right; opacity: 0.3; } -/* line 334, ../src/main.sass */ +/* line 337, ../src/main.sass */ .return:hover { opacity: 1; } -/* line 337, ../src/main.sass */ +/* line 340, ../src/main.sass */ .big { font-size: 1.2em; } -/* line 340, ../src/main.sass */ +/* line 343, ../src/main.sass */ body.support #main > article { width: 600px; margin: 3em auto; font-size: 1.2em; } -/* line 344, ../src/main.sass */ +/* line 347, ../src/main.sass */ body.support #main > article form { margin: 1em; } diff --git a/site/index.html b/site/index.html index fa49c8e..1e16ecc 100644 --- a/site/index.html +++ b/site/index.html @@ -108,8 +108,7 @@
diff --git a/site/src/main.sass b/site/src/main.sass index a5c577b..7794416 100644 --- a/site/src/main.sass +++ b/site/src/main.sass @@ -315,6 +315,9 @@ article article, .archive +innerblock background-color: $ycolorb padding: 1em + .content + width: $navWidth + margin: 0 auto #hiddenDivs width: $navWidth