From: Simon McVittie Date: Mon, 9 Jan 2017 11:37:10 +0000 (+0000) Subject: Use rel=nofollow microformat for dynamic (CGI-related) URLs X-Git-Tag: 3.20170110~19 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/9e7f0a6c59ec89c32af64d1577e314dd68b8e7f6 Use rel=nofollow microformat for dynamic (CGI-related) URLs Some of these might be relatively expensive to dereference or result in messages being logged, and there's no reason why a search engine should need to index them. (In particular, we'd probably prefer search engines to index the rendered page, not its source code.) --- diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index 0858f69f1..46e1b268f 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -126,7 +126,7 @@ sub htmlize { sub htmlize_pending { my %params = @_; return sprintf(gettext("this comment needs %s"), - ''. gettext("moderation").''); } @@ -286,7 +286,7 @@ sub preprocess_moderation { unless defined $params{desc}; if (length $config{cgiurl}) { - return ''.$params{desc}.''; } @@ -946,7 +946,7 @@ sub pagetemplate (@) { ); } elsif (commentsopen($page)) { - $link = "". + $link = "". #translators: Here "Comment" is a verb; #translators: the user clicks on it to #translators: post a comment. diff --git a/IkiWiki/Plugin/passwordauth.pm b/IkiWiki/Plugin/passwordauth.pm index c966087ce..fb3fd9ee1 100644 --- a/IkiWiki/Plugin/passwordauth.pm +++ b/IkiWiki/Plugin/passwordauth.pm @@ -305,7 +305,7 @@ sub formbuilder_setup (@) { noimageinline => 1)); } else { - $form->text("text(" "edit", page => $userpage). "\">".gettext("Create your user page").""); } diff --git a/templates/editcomment.tmpl b/templates/editcomment.tmpl index e177db959..703564eb6 100644 --- a/templates/editcomment.tmpl +++ b/templates/editcomment.tmpl @@ -8,7 +8,7 @@ - (optional, or signin) + (optional, or signin)
(optional) @@ -17,7 +17,7 @@
-(You might want to Signin first?) +(You might want to Signin first?)
diff --git a/templates/page.tmpl b/templates/page.tmpl index 183d733e1..a1991f6e4 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -74,13 +74,13 @@
  • RecentChanges
  • -
  • History
  • +
  • History
  • -
  • Source
  • +
  • Source
  • -
  • Preferences
  • +
  • Preferences
  • @@ -147,7 +147,7 @@
    Comments on this page are closed.