--- ### ALL PAGES ### layout: themes/[ site.theme.id ]/frontend/core/base ### PAGE CONFIG ### # Hero Section — categories are the paper's desks. News voice throughout: a # theme's frontmatter defaults are part of its identity (see docs/themes.md). hero: headline: "Browse by" headline_accent: "desk" subheadline: "Every story we publish is filed to a desk. Pick one and read the coverage." --- {% comment %} NEWSFLASH BLOG CATEGORIES Same data contract as classy's categories index (categories + counts built from site.posts), presented as the desk directory: editorial cards with stroked story-count numerals instead of folder icons. {% endcomment %}
{% uj_icon "newspaper", "me-1" %}The desks

{{ page.resolved.hero.headline }} {{ page.resolved.hero.headline_accent }}

{% iftruthy page.resolved.hero.subheadline %}

{{ page.resolved.hero.subheadline }}

{% endiftruthy %}
{% comment %} Build unique categories list with post counts {% endcomment %} {% assign categories = '' | split: ',' %} {% assign category_counts = '' | split: ',' %} {% for post in site.posts %} {% for category in post.post.categories %} {% assign category_fixed = category | uj_title_case %} {% unless categories contains category_fixed %} {% assign categories = categories | push: category_fixed %} {% comment %} Count posts for this category {% endcomment %} {% assign count = 0 %} {% for p in site.posts %} {% for c in p.post.categories %} {% assign c_fixed = c | uj_title_case %} {% if c_fixed == category_fixed %} {% assign count = count | plus: 1 %} {% break %} {% endif %} {% endfor %} {% endfor %} {% assign category_counts = category_counts | push: count %} {% endunless %} {% endfor %} {% endfor %} {% if categories.size == 0 %}
No desks yet

The newsroom is still setting up

Check back soon — the first stories are being filed.

{% uj_icon "arrow-left", "me-2" %}Back to the news
{% endif %}
{{ content | uj_content_format }}