summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2015-12-25 17:42:09 +0100
committerAlex Legler <alex@a3li.li>2015-12-25 17:42:09 +0100
commitf675cf54bfbcbfb2fee8631cc8ba66de48227a2a (patch)
treee750f73bf6dd16f685758ea43e7af4234766b37d
parentAdd support for setting <meta> descriptions (diff)
downloadsecurity-f675cf54bfbcbfb2fee8631cc8ba66de48227a2a.tar.gz
security-f675cf54bfbcbfb2fee8631cc8ba66de48227a2a.tar.bz2
security-f675cf54bfbcbfb2fee8631cc8ba66de48227a2a.zip
Set <title> and <meta> description for advisory pages
This should hopefully fix the inconsistent result display when searching on Google for GLSA terms.
-rw-r--r--anzen.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/anzen.rb b/anzen.rb
index beff3d2..cc9761f 100644
--- a/anzen.rb
+++ b/anzen.rb
@@ -73,6 +73,8 @@ get '/glsa/:glsaid' do
if @glsa.is_a? GLSAv1
template = :'glsa/glsav1'
+ @title = "#{@glsa.title} (GLSA #{@glsa.id})"
+ @description = "#{@glsa.synopsis}"
end
@nav = :glsa