base
This commit is contained in:
parent
76dca29297
commit
c94713a9c1
@ -512,7 +512,7 @@ article{
|
|||||||
font-family:arial;
|
font-family:arial;
|
||||||
p{
|
p{
|
||||||
margin-left:10px;
|
margin-left:10px;
|
||||||
|
color:black;
|
||||||
}
|
}
|
||||||
h1{
|
h1{
|
||||||
margin:0;
|
margin:0;
|
||||||
@ -557,3 +557,13 @@ article{
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1{
|
||||||
|
|
||||||
|
color:#69952f;
|
||||||
|
text-transform:uppercase;
|
||||||
|
font-weight:bold;
|
||||||
|
font-size:22px;
|
||||||
|
line-height:24px;
|
||||||
|
font-family:$header_font;
|
||||||
|
}
|
@ -71,13 +71,14 @@
|
|||||||
-article = Article.before(Date.today).recents.first
|
-article = Article.before(Date.today).recents.first
|
||||||
|
|
||||||
-if article
|
-if article
|
||||||
.first_article
|
%a{:href => public_article_path(:id => article.slug)}
|
||||||
.image=image_tag article.image_file.file.large.medium.url if article.image_file
|
.first_article
|
||||||
|
.image=image_tag article.image_file.file.large.medium.url if article.image_file
|
||||||
|
|
||||||
.description
|
.description
|
||||||
%h1=article.title
|
%h1=article.title
|
||||||
=simple_format article.description
|
=simple_format article.description
|
||||||
.clear
|
.clear
|
||||||
|
|
||||||
-articles = Article.before(Date.today).recents.offset(1).limit(6)
|
-articles = Article.before(Date.today).recents.offset(1).limit(6)
|
||||||
|
|
||||||
@ -95,9 +96,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
=render Article.before(Date.today).recents.first
|
|
||||||
=link_to "tout les articles >", "/blog.html", :class => "articles_button"
|
|
||||||
|
|
||||||
=yield
|
=yield
|
||||||
|
|
||||||
#sidebar
|
#sidebar
|
||||||
|
@ -1 +1,6 @@
|
|||||||
=render @article
|
|
||||||
|
%h1=@article.title
|
||||||
|
=image_tag @article.image_file.file.large.medium.url
|
||||||
|
.description=simple_format @article.description
|
||||||
|
%hr
|
||||||
|
=render @article.block
|
||||||
|
Loading…
x
Reference in New Issue
Block a user