File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 4
4
< meta charset = "utf-8 " />
5
5
< meta name = "viewport " content = "width=device-width, initial-scale=1 " />
6
6
< meta name = "csrf-token " content = { get_csrf_token ( ) } />
7
-
8
- < title > Hello ExRss!</ title >
7
+ < . live_title >
8
+ { assigns [ :page_title ] || "ExRss" }
9
+ </ . live_title >
9
10
< link phx-track-static rel = "stylesheet " href = { ~p" /assets/app.css" } />
10
11
< script defer phx-track-static type = "text/javascript " src = { ~p" /assets/app.js" } >
11
12
</ script >
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ defmodule ExRssWeb.FeedLive.Index do
68
68
feeds |> Enum . count ( & & 1 . has_error )
69
69
70
70
socket
71
+ |> assign ( :page_title , "#{ number_of_unread_entries } unread" )
71
72
|> assign ( :oldest_unread_entry , oldest_unread_entry )
72
73
|> assign ( :number_of_unread_entries , number_of_unread_entries )
73
74
|> assign ( :number_of_read_entries , number_of_read_entries )
You can’t perform that action at this time.
0 commit comments