diff options
author | Marcel Korpel <marcel.lists@gmail.com> | 2013-01-09 17:41:33 +0000 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2013-01-19 12:18:13 +0100 |
commit | 8e1051932eb86ef87f7b64efc86f50e633201b56 (patch) | |
tree | ce7bd28a65411339ca5cb5f711ddb6b79a01fa98 /web/template | |
parent | b004333eadb9a4db57592bb501b28edced708943 (diff) | |
download | aurweb-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.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/template/header.php b/web/template/header.php index 92cb2ff..9cefedc 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"> |