index-stuff

This commit is contained in:
Alec Muffett 2022-03-07 04:41:24 +00:00
parent f8d4896104
commit 1b4ccada9f
2 changed files with 334 additions and 334 deletions

664
README.md

File diff suppressed because it is too large Load Diff

View File

@ -254,14 +254,14 @@ def print_chunk(chunk, title, description=None, print_bar=True):
for row in sort_using(chunk, 'site_name'):
url = row['onion_url']
padlock = EMOJI_HTTPS if url.startswith('https') else EMOJI_HTTP
print(H3, '[{site_name}]({onion_url})'.format(**row), padlock)
print(H3, '[{site_name}]({onion_url})'.format(**row))
comment = get_placeholder(row, 'comment')
if comment != '-': print('*{}*'.format(comment))
# short name
oname = row['onion_name']
if oname != '': print(B, 'short: `{0}`'.format(oname))
# linky-linky, with https-emoji
print(B, 'link: [{0}]({0})'.format(url))
print(B, 'link: [{0}]({0})'.format(url), padlock)
# apparently some people like copying and pasting plain text
print(B, 'plain: `{0}`'.format(url))
# print proof unconditionally, as encouragement to fix it