feat: Use consistent title tags and pull from i18n
This commit is contained in:
parent
e944c627ba
commit
f11e19d56c
6 changed files with 9 additions and 6 deletions
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>Admin · Phoenix Framework</title>
|
||||
<title><%= I18n.t! "en", "site.title" %></title>
|
||||
<link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/>
|
||||
<script defer type="text/javascript" src="<%= Routes.static_path(@conn, "/js/app.js") %>"></script>
|
||||
</head>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>Core · Phoenix Framework</title>
|
||||
<title><%= I18n.t! "en", "site.title" %></title>
|
||||
<link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/>
|
||||
<script defer type="text/javascript" src="<%= Routes.static_path(@conn, "/js/app.js") %>"></script>
|
||||
</head>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>Content · Phoenix Framework</title>
|
||||
<title><%= I18n.t! "en", "site.title" %></title>
|
||||
<link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/>
|
||||
<script defer type="text/javascript" src="<%= Routes.static_path(@conn, "/js/app.js") %>"></script>
|
||||
</head>
|
||||
|
|
|
@ -20,7 +20,7 @@ defmodule Content.LayoutView do
|
|||
opt = %Option{} ->
|
||||
opt.option_value
|
||||
_ ->
|
||||
"Hello"
|
||||
I18n.t! "en", "site.title"
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -38,7 +38,7 @@ defmodule Content.LayoutView do
|
|||
opt = %Option{} ->
|
||||
opt.option_value
|
||||
_ ->
|
||||
"Yet another website"
|
||||
I18n.t! "en", "site.excerpt"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>Core · Phoenix Framework</title>
|
||||
<title><%= I18n.t! "en", "site.title" %></title>
|
||||
<link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/>
|
||||
<script defer type="text/javascript" src="<%= Routes.static_path(@conn, "/js/app.js") %>"></script>
|
||||
</head>
|
||||
|
|
|
@ -3,3 +3,6 @@ email:
|
|||
name: ""
|
||||
address: ""
|
||||
phone: ""
|
||||
site:
|
||||
title: Legendary
|
||||
excerpt: Yet another website.
|
||||
|
|
Loading…
Reference in a new issue