X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=html_generator.py;h=28891022c91ded2be0def4cc151f4d54cf028bda;hb=582fc9dbdaac3053c448af43eb8b7f71b1903d9b;hp=7d2c318fbd09293fccec6e371c1f1b76ade0efd9;hpb=7d560553537d040a217e5467008bee5afd9f6aa9;p=turbot-web diff --git a/html_generator.py b/html_generator.py index 7d2c318..2889102 100644 --- a/html_generator.py +++ b/html_generator.py @@ -22,8 +22,6 @@ import sys WEBROOT = "/srv/halibut.cworth.org/www" -website = "https://halibut.cworth.org/" -#change this if we're using AWS or some other subdomain instead def hunt_file(hunt, name): """Return a path file 'name' within the given hunt. @@ -32,6 +30,10 @@ def hunt_file(hunt, name): return "{}/{}/{}".format(WEBROOT, hunt['channel_id'], name) +def internal_link(hunt, name): + """Returns a path for a link on this site.""" + return "{}/{}".format(hunt['channel_id'], name) + def filename_from_name(name): """Returns a string derived from name, but with all spaces and slashes replaced with underscores, (for making a clean filename)""" @@ -183,7 +185,7 @@ def overview(hunt, puzzles, rounds): expanding += [ '