{% comment %} Development-only shortcut to the drafts index. Guarded on `jekyll.environment`, which is 'development' for `jekyll serve` and 'production' in CI (the deploy workflow sets JEKYLL_ENV), so this never reaches the live site. That matters here: /drafts/ has no index page of its own, and only the local WEBrick dev server synthesises a directory listing for it. On GitHub Pages the same URL is a 404, so the link would be dead there. {% endcomment %} {%- comment -%} There is no `site.drafts`: with `show_drafts` enabled Jekyll reads _drafts into `site.posts`, where the `path: _drafts` defaults scope marks them `hidden: true`. {%- endcomment -%} {% assign draft_count = site.posts | where: "hidden", true | size %} {% if jekyll.environment == 'development' %}