Skip to content
Permalink
Browse files

検索エンジンのクローラーを悪用したSPAMがやってくるので、インデックスしないようにお願いした

  • Loading branch information...
ledyba committed Mar 13, 2019
1 parent 796baa8 commit 6544eb92102129745a0b98882c4f6ddc290b3f60
Showing with 8 additions and 3 deletions.
  1. +8 −3 header.php
@@ -29,12 +29,17 @@
echo " $site_description";
// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
if ( $paged >= 2 || $page >= 2 ) {
echo ' | ' . sprintf( __( 'Page %s', 'scrappy' ), max( $paged, $page ) );
}
?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php
if (is_search()) {
echo '<meta name="robots" content="noindex,follow" />';
}
?>
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->
@@ -69,4 +74,4 @@
</nav>
</header><!-- #masthead .site-header -->

<div id="main">
<div id="main">

0 comments on commit 6544eb9

Please sign in to comment.
You can’t perform that action at this time.