developmentseed / developmentseed/FeatureServer

SEO issue: titles

オープン
#12 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
46
フォーク
14
PR マージ指標
30日以内にマージされた PR はありません

説明

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,
));
}
}

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。