- 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.
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
<div class="space-y-8">
|
|
<div class="flex items-center justify-between">
|
|
<a href={@base_path} class="text-sm text-primary hover:underline">← Back to posts</a>
|
|
<a
|
|
href={@rss_feed_url}
|
|
class="link link-hover text-orange-500 hover:text-orange-600 transition-colors"
|
|
title="Subscribe to RSS feed"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
<.rss_icon class="size-5" />
|
|
</a>
|
|
</div>
|
|
|
|
<%= if @authenticated and @visibility == :draft do %>
|
|
<div
|
|
class="rounded-lg bg-amber-50 border border-amber-200 px-4 py-3 text-amber-800 text-sm font-medium"
|
|
id="post-status-banner"
|
|
>
|
|
Draft — not published
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= if @authenticated and @visibility == :scheduled do %>
|
|
<div
|
|
class="rounded-lg bg-blue-50 border border-blue-200 px-4 py-3 text-blue-800 text-sm font-medium"
|
|
id="post-status-banner"
|
|
>
|
|
This post is scheduled for {Calendar.strftime(@post.date, "%B %d, %Y")}
|
|
</div>
|
|
<% end %>
|
|
|
|
<.post_show post={@post} base_path={@base_path} />
|
|
</div>
|