summaryrefslogtreecommitdiffstats
path: root/blog/_includes/news.html
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2016-10-03 17:13:41 +0200
committerHarald Eilertsen <haraldei@anduin.net>2016-10-03 17:13:41 +0200
commit7dea54fb6e03afb6696c8a36e3af8bb27770eab3 (patch)
tree6d9caf689186c5e4edbac40c8ba53b2e51829542 /blog/_includes/news.html
parenteec3fd64a25cf264b96223011208f186d744993e (diff)
downloadnorsk-urskog-main-7dea54fb6e03afb6696c8a36e3af8bb27770eab3.tar.gz
norsk-urskog-main-7dea54fb6e03afb6696c8a36e3af8bb27770eab3.tar.bz2
norsk-urskog-main-7dea54fb6e03afb6696c8a36e3af8bb27770eab3.zip
Better rendering of the news feed the various places it's used.
Diffstat (limited to 'blog/_includes/news.html')
-rw-r--r--blog/_includes/news.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/blog/_includes/news.html b/blog/_includes/news.html
index a8daaeb..e9f6138 100644
--- a/blog/_includes/news.html
+++ b/blog/_includes/news.html
@@ -2,7 +2,11 @@
<h2>{% t home.latest_news %}</h2>
{% for p in site.posts limit: 5 %}
{% if p != page %}
- {% include post-excerpt.html post=p %}
+ {% if include.sidebar %}
+ {% include post-excerpt.html post=p sidebar=true %}
+ {% else %}
+ {% include post-excerpt.html post=p %}
+ {% endif %}
{% endif %}
{% endfor %}
</section>