{% if data.posts and page.url != '/blog' %} <div class="widget lh-copy"> <h2>Latest Blog Posts</h2> <ul class="pl-4"> {% for post in data.posts|slice(0, site.latest_posts) %} <li> <a href="{{ post.url }}" class="link"> {{ post.title }} </a> </li> {% endfor %} </ul> </div> {% endif %}