From 99dee2f570cb7f91f410ff64895f877db0bb5fe5 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 12 Jan 2022 17:08:07 -0800 Subject: [PATCH] Use relative links for internal links Which are as simple as could be---just the filenames. --- html_generator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html_generator.py b/html_generator.py index 2889102..0fef3d4 100644 --- a/html_generator.py +++ b/html_generator.py @@ -32,7 +32,9 @@ def hunt_file(hunt, name): def internal_link(hunt, name): """Returns a path for a link on this site.""" - return "{}/{}".format(hunt['channel_id'], name) + + # Just generate a relative link, (which is just the name itself) + return "{}".format(name) def filename_from_name(name): """Returns a string derived from name, but with all spaces and slashes -- 2.43.0