{# AI Usage Widget — compact sidebar version of the /ai/ page AI transparency graph #} {% set stats = collections.posts | aiStats %} {% set aiPostsList = collections.posts | aiPosts %} {% if stats and stats.total > 0 %}

AI Transparency

{# Mini stats — 2x2 grid #}
{{ stats.total }}
Total
{{ stats.aiCount }}
AI-involved
{{ stats.total - stats.aiCount }}
Human-only
{{ stats.percentage }}%
AI ratio
{# Level breakdown — compact pills #}
L0: {{ stats.byLevel[0] }} L1: {{ stats.byLevel[1] }} L2: {{ stats.byLevel[2] }} L3: {{ stats.byLevel[3] }}
{# Compact post-graph — current year only, AI posts highlighted #} {% if aiPostsList and aiPostsList.length %}
AI-involved posts this year
{% postGraph aiPostsList, { prefix: "ai-widget", limit: 1, noLabels: true, boxColorDark: "#44403c", highlightColorLight: "#d97706", highlightColorDark: "#fbbf24" } %} {% endif %} View full AI report
{% endif %}