Skip to content

Commit

Permalink
Improve <title> tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Dec 16, 2023
1 parent 84c0090 commit 9562649
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/asciinema_web/views/layout_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ defmodule AsciinemaWeb.LayoutView do
import AsciinemaWeb.UserView, only: [avatar_url: 1]

def page_title(conn) do
case conn.assigns[:page_title] do
nil -> "asciinema - Record and share your terminal sessions, the simple way"
title -> title <> " - asciinema"
end
title = conn.assigns[:page_title] || "Record and share your terminal sessions, the simple way"

"#{title} - #{conn.host}"
end

def body_class(conn) do
Expand Down

0 comments on commit 9562649

Please sign in to comment.