import filter work and cleanup
This commit is contained in:
@@ -133,10 +133,12 @@
|
||||
}
|
||||
item.appendChild(imgEl);
|
||||
|
||||
if (img.tags && img.tags.length > 0) {
|
||||
// Filter out archive tags from display (they're still visible in modal)
|
||||
const visibleTags = (img.tags || []).filter(t => t.kind !== 'archive');
|
||||
if (visibleTags.length > 0) {
|
||||
const overlay = document.createElement('div');
|
||||
overlay.className = 'tag-overlay';
|
||||
img.tags.forEach(t => {
|
||||
visibleTags.forEach(t => {
|
||||
const chip = document.createElement('a');
|
||||
chip.className = 'tag-chip';
|
||||
chip.href = `/gallery?tag=${encodeURIComponent(t.name)}`;
|
||||
|
||||
Reference in New Issue
Block a user