From bab6d25d401aa1cf755d653b7953cca9a739d242 Mon Sep 17 00:00:00 2001 From: Adam Piontek Date: Mon, 5 Apr 2021 22:48:30 -0400 Subject: [PATCH] fixes --- lib/home73k_web/live/blog_live.html.leex | 2 +- priv/content/2018/03/2018-03-24_pihole-love.md | 4 +++- .../2020/12/2020-12-08_new-front-page-internet-home.md | 8 +++++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/home73k_web/live/blog_live.html.leex b/lib/home73k_web/live/blog_live.html.leex index f41c5af..7788e63 100644 --- a/lib/home73k_web/live/blog_live.html.leex +++ b/lib/home73k_web/live/blog_live.html.leex @@ -17,7 +17,7 @@

- <%= live_redirect "#{post.title}", to: Routes.blog_path(@socket, :show, post) %> + <%= @live_action == :show && post.title || live_redirect "#{post.title}", to: Routes.blog_path(@socket, :show, post) %>