Compartmentalization of Links

This commit is contained in:
Simon Martens
2025-09-29 19:19:17 +02:00
parent 52758c0124
commit bff07a58e6
9 changed files with 122 additions and 154 deletions

View File

@@ -34,8 +34,8 @@
{{- range $groupKey, $groupedItems := $groupedPieces -}}
<div class="break-inside-avoid pl-4">
<div class="pb-1 indent-4">
{{- /* Use first piece for display text */ -}}
{{ template "_unified_piece_entry" (dict "Piece" (index $groupedItems 0).Item "CurrentActorID" $a.ID "DisplayMode" "akteure" "ShowPlaceTags" true "UseColonFormat" false "ShowContinuation" false) }}
{{- /* Use piece link component for consistent linking */ -}}
{{ template "_piece_link" (dict "Piece" (index $groupedItems 0).Item "DisplayMode" "akteure" "ShowUnifiedEntry" true "LongForm" false "CurrentActorID" $a.ID) }}
{{- /* Show all citations from all pieces in this group inline with commas */ -}}
{{ " " }}{{- range $groupIndex, $groupItem := $groupedItems -}}