リッチスニペット

パンくずリスト

Pukiwikiの場合(microdata)

+++ /plugin/topicpath.inc.php

 			$topic_path[] = $element;
 		} else {
 			// Page exists or not exists
-			$topic_path[] = '<a href="' . $script . '?' . $landing . '">' .
-				$element . '</a>';
+			$topic_path[] = '<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="' . $script . '?' . $landing . '" itemprop="url"><span itemprop="title">' .
+				$element . '</span></a></span>';
 		}
 	}

+	$labelname = '○○Wiki';
+
 	if (PLUGIN_TOPICPATH_TOP_DISPLAY)
-		$topic_path[] = make_pagelink($defaultpage, PLUGIN_TOPICPATH_TOP_LABEL);
+		$topic_path[] = '<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/" itemprop="url"><span itemprop="title">'.$labelname.'</span></a></span>';

 	return join(PLUGIN_TOPICPATH_TOP_SEPARATOR, array_reverse($topic_path));
 }

参考


最終更新: 2017-10-15 (日) 22:57:02