summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorGerry Weißbach <gerry.w@gammaproduction.de>2014-08-29 11:59:15 +0200
committerGerry Weißbach <gerry.w@gammaproduction.de>2014-08-29 11:59:15 +0200
commit5e7f4d50cbbc788c9c0483a0a2ff1b536e4ffe8c (patch)
treef21a22e5c1ef7f9a8ecd78370cb94472c7407279 /inc/template.php
parent04585e6c37e0352a5bc568fc8c938aeafa1c160e (diff)
parent12e60eea4f8a0a84213b972847203e57e590c59b (diff)
downloadrpg-5e7f4d50cbbc788c9c0483a0a2ff1b536e4ffe8c.tar.gz
rpg-5e7f4d50cbbc788c9c0483a0a2ff1b536e4ffe8c.tar.bz2
Merge branch 'master' of https://github.com/splitbrain/dokuwiki
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/inc/template.php b/inc/template.php
index c02c9f1ae..7f3c68534 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -369,7 +369,11 @@ function tpl_metaheaders($alt = true) {
} else {
$head['meta'][] = array('name'=> 'robots', 'content'=> 'noindex,nofollow');
}
- $head['link'][] = array('rel'=> 'canonical', 'href'=> wl($ID, '', true, '&'));
+ $canonicalUrl = wl($ID, '', true, '&');
+ if ($ID == $conf['start']) {
+ $canonicalUrl = DOKU_URL;
+ }
+ $head['link'][] = array('rel'=> 'canonical', 'href'=> $canonicalUrl);
} else {
$head['meta'][] = array('name'=> 'robots', 'content'=> 'noindex,follow');
}
@@ -381,13 +385,6 @@ function tpl_metaheaders($alt = true) {
// set metadata
if($ACT == 'show' || $ACT == 'export_xhtml') {
- // date of modification
- if($REV) {
- $head['meta'][] = array('name'=> 'date', 'content'=> date('Y-m-d\TH:i:sO', $REV));
- } else {
- $head['meta'][] = array('name'=> 'date', 'content'=> date('Y-m-d\TH:i:sO', $INFO['lastmod']));
- }
-
// keywords (explicit or implicit)
if(!empty($INFO['meta']['subject'])) {
$head['meta'][] = array('name'=> 'keywords', 'content'=> join(',', $INFO['meta']['subject']));