From 5ffeb80959128742822818352e942449855b6b49 Mon Sep 17 00:00:00 2001 From: Maciej Pienczyn Date: Sun, 15 Mar 2026 09:03:32 +0100 Subject: [PATCH] fix: improve ZOPK news image loading with no-referrer policy - Add referrerpolicy="no-referrer" to img tags to bypass hotlink protection on source servers - Replace Google Favicons fallback (blocked) with inline domain initial letter in green placeholder - Consistent styling across index and news_list templates Co-Authored-By: Claude Opus 4.6 (1M context) --- templates/zopk/index.html | 13 ++++++++++--- templates/zopk/news_list.html | 13 ++++++++++--- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/templates/zopk/index.html b/templates/zopk/index.html index aa666e6..fda984b 100644 --- a/templates/zopk/index.html +++ b/templates/zopk/index.html @@ -263,6 +263,13 @@ flex-shrink: 0; } + .news-source-initial { + font-size: 28px; + font-weight: 700; + opacity: 0.8; + text-transform: uppercase; + } + .news-content h4 { font-size: var(--font-size-lg); margin-bottom: var(--spacing-sm); @@ -1316,14 +1323,14 @@ {% for news in news_items %} {% if news.image_url %} - {% else %}
- + {{ (news.source_domain or 'N')[0]|upper }}
{% endif %}