summaryrefslogblamecommitdiffstats
path: root/blog/_includes/news.html
blob: d08c45ff3ba3cd67f648d56e6a405826404118ec (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                   
                  

                                                                                 
                      




                                                           
               

              
<section id="news">
  <h2>Nyheter</h2>
  {% assign posts_for_lang = site.posts | where_exp: "p","p.lang == page.lang" %}
  {% for p in posts_for_lang limit: 5 %}
    {% if p != page %}
      {% if include.sidebar %}
        {% include post-excerpt.html post=p sidebar=true %}
      {% else %}
        {% include post-excerpt.html post=p %}
      {% endif %}
    {% endif %}
  {% endfor %}
</section>