diff options
author | 2015-12-25 17:41:51 +0100 | |
---|---|---|
committer | 2015-12-25 17:41:51 +0100 | |
commit | 7c7415529272d08cdea963644d197d8537d002d1 (patch) | |
tree | 0343b7aa0f6d3f4f0056f489fa7ea732804b93d9 | |
parent | Fix logo source again (diff) | |
download | security-7c7415529272d08cdea963644d197d8537d002d1.tar.gz security-7c7415529272d08cdea963644d197d8537d002d1.tar.bz2 security-7c7415529272d08cdea963644d197d8537d002d1.zip |
Add support for setting <meta> descriptions
-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"> |