~sircmpwn/cgi-scripts

5bb8b78a070f953d5600bbe7bcd35efb8938667c — Drew DeVault 3 years ago 7d04834
Update hn.py
1 files changed, 1 insertions(+), 3 deletions(-)

M hn.py
M hn.py => hn.py +1 -3
@@ 38,9 38,7 @@ if not path or path == "/":
            }))

    sys.stdout.write("20 text/gemini\r\n")
    print("# Hacker News")
    print()
    print("Note: the HTML to Gemtext conversion works best with articles")
    print("# Hacker News\n")
    for post in posts:
        url = post['url']
        print(f"=> {gemini_url}/view?{quote(url)} {post['title']}")