Skip to content

fix: item-template は item-query ごとに 1 個(投稿全体での singleton ではない)#8

Merged
mt8 merged 1 commit intomainfrom
issue/7
Apr 27, 2026
Merged

fix: item-template は item-query ごとに 1 個(投稿全体での singleton ではない)#8
mt8 merged 1 commit intomainfrom
issue/7

Conversation

@mt8
Copy link
Copy Markdown
Owner

@mt8 mt8 commented Apr 27, 2026

Closes #7

item/block.json から multiple: false を削除。item-query 側の templateLock + template が各 query 内で item を 1 個に固定するので、「投稿全体では何個でも、各 item-query 内では 1 個」という期待通りに動作する。

feedwright/item に supports.multiple=false が付いていたため、投稿全体で
1 つしか item-template を配置できなかった。item-query を複数配置した
場合、2 つ目以降の item-query が item-template を持てない。

multiple=false を削除。各 item-query 内では既に templateLock="all" +
template=[['feedwright/item']] で item がちょうど 1 個に固定されている
ので、これで「item-query ごとに 1 個」の意図通りに動作する。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mt8 mt8 merged commit 55bedff into main Apr 27, 2026
7 checks passed
@mt8 mt8 deleted the issue/7 branch April 27, 2026 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

item-template が投稿全体で 1 個しか置けない(item-query ごとに 1 個が正解)

1 participant