- Add <.rss_icon> inline SVG component in core_components.ex - Inject RSS <link> tags into <head> on blog pages for auto-discovery - Show RSS icon next to blog title on index and tag pages - Show RSS icon on post pages next to back-link - Add Subscribe section in footer with links to both feeds - Wire feed URL through blog controller (index, show, tag actions) 174 tests pass, credo clean.
21 lines
695 B
Plaintext
21 lines
695 B
Plaintext
<div class="space-y-8">
|
|
<header>
|
|
<div class="flex items-center gap-3">
|
|
<h1 class="text-3xl font-bold font-display">{@blog_title}</h1>
|
|
<a
|
|
href={@rss_feed_url}
|
|
class="link link-hover text-orange-500 hover:text-orange-600 transition-colors"
|
|
title="Subscribe to {@blog_title} RSS feed"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
<.rss_icon class="size-5" />
|
|
</a>
|
|
</div>
|
|
<p :if={@blog_description} class="mt-2 text-base-content/70">{@blog_description}</p>
|
|
</header>
|
|
|
|
<.post_index posts={@posts} base_path={@base_path} />
|
|
<.pagination page={@page} total_pages={@total_pages} base_path={@base_path} />
|
|
</div>
|