summaryrefslogtreecommitdiffstats
path: root/web/template
diff options
context:
space:
mode:
authorMarcel Korpel <marcel.lists@gmail.com>2013-01-09 18:41:33 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2013-01-19 12:18:13 +0100
commit8e1051932eb86ef87f7b64efc86f50e633201b56 (patch)
treece7bd28a65411339ca5cb5f711ddb6b79a01fa98 /web/template
parentb004333eadb9a4db57592bb501b28edced708943 (diff)
downloadaur-8e1051932eb86ef87f7b64efc86f50e633201b56.tar.gz
aur-8e1051932eb86ef87f7b64efc86f50e633201b56.tar.xz
Add description meta-element to package pages
Implements FS#33294 Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template')
-rw-r--r--web/template/header.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/template/header.php b/web/template/header.php
index 92cb2ff8..9cefedcb 100644
--- a/web/template/header.php
+++ b/web/template/header.php
@@ -10,6 +10,9 @@
<link rel='shortcut icon' href='/images/favicon.ico' />
<link rel='alternate' type='application/rss+xml' title='Newest Packages RSS' href='<?= get_uri('/rss/'); ?>' />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<?php if (isset($details['Description']) && !empty($details['Description'])): ?>
+ <meta name="description" content="<?= htmlspecialchars($details['Description']) ?>" />
+<?php endif; ?>
</head>
<body>
<div id="archnavbar" class="anb-aur">