mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-07 00:50:56 +00:00
fix one class of broken anchors
This commit is contained in:
parent
3cf65dd0e9
commit
8f0b9b6022
@ -22,8 +22,9 @@ class ClickHouseLinkMixin(object):
|
||||
if el is not None:
|
||||
href = el.get('href') or ''
|
||||
is_external = href.startswith('http:') or href.startswith('https:')
|
||||
if is_external and not href.startswith('https://clickhouse.yandex'):
|
||||
el.set('rel', 'external nofollow')
|
||||
if is_external:
|
||||
if not href.startswith('https://clickhouse.yandex'):
|
||||
el.set('rel', 'external nofollow')
|
||||
elif single_page:
|
||||
if '#' in href:
|
||||
el.set('href', '#' + href.split('#', 1)[1])
|
||||
|
Loading…
Reference in New Issue
Block a user