fix: multiple frontend issues

- Add Alpine.js Collapse plugin for x-collapse directive
- Create favicon.svg and favicon.ico with proper linking
- Fix default-avatar references (use existing .svg instead of .png)
- Add favicon.ico to passthrough copy

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ricardo
2026-01-28 15:08:01 +01:00
parent 637b0d41d3
commit 1f3fe00ce8
7 changed files with 17 additions and 7 deletions

View File

@@ -100,7 +100,7 @@
link.dataset.new = 'true';
const img = document.createElement('img');
img.src = author.photo || '/images/default-avatar.png';
img.src = author.photo || '/images/default-avatar.svg';
img.alt = author.name || 'Anonymous';
img.className = 'w-8 h-8 rounded-full ring-2 ring-primary-500';
img.loading = 'lazy';
@@ -148,7 +148,7 @@
avatarLink.rel = 'noopener';
const avatarImg = document.createElement('img');
avatarImg.src = author.photo || '/images/default-avatar.png';
avatarImg.src = author.photo || '/images/default-avatar.svg';
avatarImg.alt = author.name || 'Anonymous';
avatarImg.className = 'w-10 h-10 rounded-full';
avatarImg.loading = 'lazy';