diff options
author | Simon McVittie <smcv@debian.org> | 2017-01-09 11:37:10 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2017-01-09 13:07:24 +0000 |
commit | 9e7f0a6c59ec89c32af64d1577e314dd68b8e7f6 (patch) | |
tree | f1d142e35f637069c2ac70d1a41c7f519753b2cb /templates | |
parent | 62c9df67212c7c42eb03ad9e36891afe4bc2d9a2 (diff) | |
download | ikiwiki-9e7f0a6c59ec89c32af64d1577e314dd68b8e7f6.tar ikiwiki-9e7f0a6c59ec89c32af64d1577e314dd68b8e7f6.tar.gz |
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.)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/editcomment.tmpl | 4 | ||||
-rw-r--r-- | templates/page.tmpl | 8 |
2 files changed, 6 insertions, 6 deletions
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 @@ <TMPL_UNLESS NAME=USERNAME> <TMPL_IF NAME=ALLOWAUTHOR> <label for="author" class="block">Name:</label> -<TMPL_VAR NAME=FIELD-AUTHOR> (optional, or <a href="<TMPL_VAR SIGNINURL>">signin</a>) +<TMPL_VAR NAME=FIELD-AUTHOR> (optional, or <a rel="nofollow" href="<TMPL_VAR SIGNINURL>">signin</a>) <br/> <label for="url" class="block">Website:</label> <TMPL_VAR NAME=FIELD-URL> (optional) @@ -17,7 +17,7 @@ <TMPL_VAR NAME=FIELD-EMAIL> <TMPL_VAR FIELD-ANONSUBSCRIBE> <br /> <TMPL_ELSE> -(You might want to <a href="<TMPL_VAR SIGNINURL>">Signin</a> first?) +(You might want to <a rel="nofollow" href="<TMPL_VAR SIGNINURL>">Signin</a> first?) <br /> </TMPL_IF> </TMPL_UNLESS> 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 @@ <li><a href="<TMPL_VAR RECENTCHANGESURL>">RecentChanges</a></li> </TMPL_IF> <TMPL_IF HISTORYURL> -<li><a href="<TMPL_VAR HISTORYURL>">History</a></li> +<li><a rel="nofollow" href="<TMPL_VAR HISTORYURL>">History</a></li> </TMPL_IF> <TMPL_IF GETSOURCEURL> -<li><a href="<TMPL_VAR GETSOURCEURL>">Source</a></li> +<li><a rel="nofollow" href="<TMPL_VAR GETSOURCEURL>">Source</a></li> </TMPL_IF> <TMPL_IF PREFSURL> -<li><a href="<TMPL_VAR PREFSURL>">Preferences</a></li> +<li><a rel="nofollow" href="<TMPL_VAR PREFSURL>">Preferences</a></li> </TMPL_IF> <TMPL_IF ACTIONS> <TMPL_LOOP ACTIONS> @@ -147,7 +147,7 @@ <TMPL_VAR COMMENTS> <TMPL_IF ADDCOMMENTURL> <div class="addcomment"> -<a href="<TMPL_VAR ADDCOMMENTURL>">Add a comment</a> +<a rel="nofollow" href="<TMPL_VAR ADDCOMMENTURL>">Add a comment</a> </div> <TMPL_ELSE> <div class="addcomment">Comments on this page are closed.</div> |