-lang_article = article.lang_articles.find_by_lang_site_id(@lang.id)

-if article.without_text_image_file
  -img_url = "https://payrepmc.quartz.xyz"+article.without_text_image_file.file.large.url
-elsif article.image_file
  -img_url = "https://payrepmc.quartz.xyz"+article.image_file.file.large.url

-if article_valid_to_show(article, @lang, Time.now)
  -@count = @count + 1
  
  -if !@new_site 
    =link_to article_path(:slug => lang_article.slug, :lang => @lang.slug), :class => "article_search" do
  
      .image{:style => "background-image:url('#{img_url}');"}
  
  
      .description
        %h3 Article
        -if !article.title_cached
          %h2= lang_article.title
          %p.date
            ="le "+l(article.published_at, :format => :human_date)
            ="-"
            %span.coms=i(:"comment-o")+" "+article.comments.where(:enabled => true).count.to_s
  
          -if false
            =simple_format lang_article.description
            %p.read_more
              =qit "blog lire plus", "Lire la suite"
      .clear

    -if article.image_file and article.image_file.photograph

      -@page_images_credits << article.image_file.photograph
  
  -else
    =link_to article_path(:slug => lang_article.slug, :lang => @lang.slug), :class => "article_search" do
  
      .image{:style => "background-image:url('#{img_url}');"}
  
  
      .description
        -if !article.title_cached
          %h2= lang_article.title
          .desc
            =l(article.published_at, :format => :date)
            %span.sep="|"
            =article.category.lang(I18n.locale.to_s).name
            %br
            Blog
            %br
            %p
              =lang_article.description.truncate(120, separator: ' ')
          
            
      .clear

    -if article.image_file and article.image_file.photograph

      -@page_images_credits << article.image_file.photograph
    