mirror of
https://github.com/svemagie/blog-eleventy-indiekit.git
synced 2026-04-02 08:44:56 +02:00
Eliminate monotonous blue by replacing ~290 primary- references in 60 files with semantically appropriate colors: - accent (teal): links, CTAs, buttons, tabs, focus rings, spinners - purple: Funkwhale/music, photos, Mastodon/fediverse - surface (neutral): GitHub, dates/metadata, info boxes - amber: bookmarks, blogroll categories - red: likes - green: reposts - sky: replies - orange: RSS/feeds, podcasts - #0085ff: Bluesky brand - #a730b8: Mastodon brand Also updates prose link colors in tailwind.config.js, pagefind UI primary color to teal, and client-side JS color references. Confab-Link: http://localhost:8080/sessions/bd3f7012-c703-47e9-bfe2-2ad04ce1842d
28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
{# Recent Comments Widget — sidebar #}
|
|
{% if recentComments and recentComments.length %}
|
|
<is-land on:visible>
|
|
<div class="widget">
|
|
<h3 class="widget-title">Recent Comments</h3>
|
|
<ul class="space-y-3">
|
|
{% for comment in recentComments %}
|
|
<li class="text-sm">
|
|
<div class="flex items-start gap-2">
|
|
{% if comment.author and comment.author.photo %}
|
|
<img src="{{ comment.author.photo }}" alt="{{ comment.author.name }}"
|
|
class="w-6 h-6 rounded-full flex-shrink-0 mt-0.5" loading="lazy">
|
|
{% endif %}
|
|
<div>
|
|
<span class="font-medium">{{ comment.author.name or "Anonymous" }}</span>
|
|
<p class="text-surface-600 dark:text-surface-400 line-clamp-2">{{ comment.content.text | truncate(80) }}</p>
|
|
{% if comment["comment-target"] %}
|
|
<a href="{{ comment['comment-target'] }}" class="text-xs text-accent-600 dark:text-accent-400 hover:underline">View post</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</is-land>
|
|
{% endif %}
|