developmentseed / developmentseed/FeatureServer

SEO issue: titles

Aperta
#12 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
46
Fork
14
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Currently FServer causes the main project page and the associated "all releases" page to have an identical title, which gets reported in Google webmasters tools.

A possible quick fix is to modify the head title when the page template is the one for releases, indicating that this is the releases page:

/**

* Implements hook_preprocess_page().
*/
function fserver_preprocess_page(&$vars) {
if (in_array('page-node-releases', $vars['template_files'])) {
list($title, $site) = explode(' | ', $vars['head_title']);
$vars['head_title'] = t('@title: All releases | @site', array(
'@title' => $title,
'@site' => $site,
));
}
}

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.