mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
set nofollow on ?doc links
google keeps trying to read binaries as text, maybe now it won't
This commit is contained in:
parent
5ab09769e1
commit
6a2644fece
|
@ -1837,7 +1837,7 @@ tell search engines you don't wanna be indexed, either using the good old [robo
|
|||
* volflag `[...]:c,norobots` does the same thing for that single volume
|
||||
* volflag `[...]:c,robots` ALLOWS search-engine crawling for that volume, even if `--no-robots` is set globally
|
||||
|
||||
also, `--force-js` disables the plain HTML folder listing, making things harder to parse for search engines
|
||||
also, `--force-js` disables the plain HTML folder listing, making things harder to parse for *some* search engines -- note that crawlers which understand javascript (such as google) will not be affected
|
||||
|
||||
|
||||
## themes
|
||||
|
|
|
@ -6078,7 +6078,7 @@ class HttpCli(object):
|
|||
quotep(href),
|
||||
)
|
||||
elif fn in hist:
|
||||
margin = '<a href="%s.hist/%s">#%s</a>' % (
|
||||
margin = '<a href="%s.hist/%s" rel="nofollow">#%s</a>' % (
|
||||
base,
|
||||
html_escape(hist[fn][2], quot=True, crlf=True),
|
||||
hist[fn][0],
|
||||
|
|
|
@ -5774,7 +5774,7 @@ var showfile = (function () {
|
|||
|
||||
td.innerHTML = '<a href="#" id="t' +
|
||||
link.id + '" class="doc bri" hl="' +
|
||||
link.id + '">-txt-</a>';
|
||||
link.id + '" rel="nofollow">-txt-</a>';
|
||||
|
||||
td.getElementsByTagName('a')[0].setAttribute('href', '?doc=' + fn);
|
||||
}
|
||||
|
@ -7936,7 +7936,7 @@ var treectl = (function () {
|
|||
|
||||
if (tn.lead == '-')
|
||||
tn.lead = '<a href="?doc=' + bhref + '" id="t' + id +
|
||||
'" class="doc' + (lang ? ' bri' : '') +
|
||||
'" rel="nofollow" class="doc' + (lang ? ' bri' : '') +
|
||||
'" hl="' + id + '" name="' + hname + '">-txt-</a>';
|
||||
|
||||
var cl = /\.PARTIAL$/.exec(fname) ? ' class="fade"' : '',
|
||||
|
|
Loading…
Reference in a new issue