Display vote title in page title and when sharing link
This commit is contained in:
parent
45c8e9b6b4
commit
d2e07630d5
1 changed files with 6 additions and 1 deletions
|
|
@ -3,7 +3,12 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>Vedia</title>
|
<% if @vote %>
|
||||||
|
<title>Vedia · <%= @vote.title %></title>
|
||||||
|
<meta property="og:title" content="<%= @vote.title %>"/>
|
||||||
|
<% else %>
|
||||||
|
<title>Vedia</title>
|
||||||
|
<% end %>
|
||||||
<script src="/chartkick.js"></script>
|
<script src="/chartkick.js"></script>
|
||||||
<script src="/Chart.bundle.js"></script>
|
<script src="/Chart.bundle.js"></script>
|
||||||
<link rel="stylesheet" href="/bootstrap.css">
|
<link rel="stylesheet" href="/bootstrap.css">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue