description = "News layout" == {##}
{% partial "head" %} {% partial "header" selected="news" %}

# {{ this.page.title }}

{# search for articles on duckduckgo.com #}

### Categories

{# The category slug is an empty string if the legacy news URL (`/news`) is browsed to. #}
All
{% for category in blogCategories.categories %}
{{ category.name }}
{% endfor %}
{# The category slug is an empty string if the legacy news URL (`/news`) is browsed to. #} {% if blogCategories.currentCategorySlug == "default" or blogCategories.currentCategorySlug == "" %}

### All posts

{% else %}

### Posts from category: {{ blogCategories.currentCategorySlug|capitalize }}

{% endif %} {% partial "pagination" %} {% set posts = blogPosts.posts %} {% for post in posts %}

### {{ post.title }}

#### By: {{ post.user.full_name }} {{ post.published_at|date('j F Y') }}

{{ post.excerpt |raw }}

{% endfor %} {% partial "pagination" %}
{% partial "footer" %}