fix: restrict AI usage disclosure to articles and notes only

- post.njk: wrap <details> block in {% if '/articles/' in page.url
  or '/notes/' in page.url %} — hides it on photos, bookmarks,
  likes, replies, reposts
- page.njk: remove AI usage <aside> block entirely — pages are
  never article/note types

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
svemagie
2026-03-10 10:01:52 +01:00
parent df5bbe50d9
commit ea00bc2c0d
2 changed files with 3 additions and 44 deletions

View File

@@ -76,7 +76,8 @@ withBlogSidebar: true
{# Rich reply context with h-cite microformat #}
{% include "components/reply-context.njk" %}
{# AI usage disclosure — always shown, collapsed by default, placed after reply context #}
{# AI usage disclosure — articles and notes only #}
{% if '/articles/' in page.url or '/notes/' in page.url %}
<details class="mt-4 text-xs text-surface-600 dark:text-surface-400">
<summary class="cursor-pointer hover:text-surface-600 dark:hover:text-surface-300 list-none flex items-center gap-1.5 [&::-webkit-details-marker]:hidden">
<svg class="w-3.5 h-3.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
@@ -101,6 +102,7 @@ withBlogSidebar: true
{% endif %}
</div>
</details>
{% endif %}
{# Pending syndication targets (for services like IndieNews that require u-syndication before webmention) #}
{% if mpSyndicateTo %}