diff options
-rw-r--r-- | views/layout.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/layout.erb b/views/layout.erb index 615227b..1a6dd46 100644 --- a/views/layout.erb +++ b/views/layout.erb @@ -1,11 +1,11 @@ <!DOCTYPE html> <html> <head> - <title><%= "#{h @title} - " if @title %>Gentoo Security</title> + <title><%= "#{h @title} — " if @title %>Gentoo Security</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="theme-color" content="#54487a"> - <meta name="description" content="Gentoo Security Database"> + <meta name="description" content="<%= @description ? "#{h @description.gsub("\n", ' ').squeeze(' ').strip}" : 'Gentoo Security Database' %>"> <link href="https://1b9a50f4f9de4348cd9f-e703bc50ba0aa66772a874f8c7698be7.ssl.cf5.rackcdn.com/bootstrap.min.css" rel="stylesheet" media="screen"> <link href="https://1b9a50f4f9de4348cd9f-e703bc50ba0aa66772a874f8c7698be7.ssl.cf5.rackcdn.com/tyrian.min.css" rel="stylesheet" media="screen"> <link href="/css/main.css" rel="stylesheet" media="screen"> |