---
### ALL PAGES ###
layout: themes/[ site.theme.id ]/frontend/core/base
asset_path: blog/categories/category
### PAGE CONFIG ###
# Hero Section
hero:
subheadline: "Every story filed to this desk, newest first."
---
{% comment %}
NEWSFLASH CATEGORY ARCHIVE
Same data contract as classy's category page (page.category.name/slug +
posts filtered from site.posts), presented as a desk front: breadcrumb,
serif desk headline, and the same story-card grid as the blog index.
{% endcomment %}
The desk
{{ page.category.name }}
{% iftruthy page.resolved.hero.subheadline %}
{{ page.resolved.hero.subheadline }}
{% endiftruthy %}
{% comment %} Filter posts by category (max 100) {% endcomment %}
{% assign category_slug = page.category.slug %}
{% assign filtered_posts = '' | split: ',' %}
{% for post in site.posts %}
{% if filtered_posts.size >= 100 %}
{% break %}
{% endif %}
{% for category in post.post.categories %}
{% assign cat_slug = category | slugify %}
{% if cat_slug == category_slug %}
{% assign filtered_posts = filtered_posts | push: post %}
{% break %}
{% endif %}
{% endfor %}
{% endfor %}
{% if filtered_posts.size > 0 %}