fix: rename reader layout to ap-reader.njk to avoid microsub collision

Nunjucks resolves template names across all registered plugin view
directories. Both @rmdes/indiekit-endpoint-microsub and this plugin
had views/layouts/reader.njk, causing the microsub layout to be
loaded instead — which meant Alpine.js, reader CSS, and all timeline
content were missing from the rendered page.
This commit is contained in:
Ricardo
2026-02-21 14:08:05 +01:00
parent 3ad86ffb39
commit 978aeb45ae
7 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@rmdes/indiekit-endpoint-activitypub", "name": "@rmdes/indiekit-endpoint-activitypub",
"version": "1.1.3", "version": "1.1.4",
"description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.", "description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.",
"keywords": [ "keywords": [
"indiekit", "indiekit",
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "layouts/reader.njk" %} {% extends "layouts/ap-reader.njk" %}
{% from "heading/macro.njk" import heading with context %} {% from "heading/macro.njk" import heading with context %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "layouts/reader.njk" %} {% extends "layouts/ap-reader.njk" %}
{% from "heading/macro.njk" import heading with context %} {% from "heading/macro.njk" import heading with context %}
{% from "prose/macro.njk" import prose with context %} {% from "prose/macro.njk" import prose with context %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "layouts/reader.njk" %} {% extends "layouts/ap-reader.njk" %}
{% from "heading/macro.njk" import heading with context %} {% from "heading/macro.njk" import heading with context %}
{% from "prose/macro.njk" import prose with context %} {% from "prose/macro.njk" import prose with context %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "layouts/reader.njk" %} {% extends "layouts/ap-reader.njk" %}
{% from "heading/macro.njk" import heading with context %} {% from "heading/macro.njk" import heading with context %}
{% from "prose/macro.njk" import prose with context %} {% from "prose/macro.njk" import prose with context %}
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "layouts/reader.njk" %} {% extends "layouts/ap-reader.njk" %}
{% from "heading/macro.njk" import heading with context %} {% from "heading/macro.njk" import heading with context %}
{% from "prose/macro.njk" import prose with context %} {% from "prose/macro.njk" import prose with context %}