@@ -137,6 +137,7 @@ def build_vilf() -> None:
137137 o .write (
138138 env .get_template ("about.html" ).render (
139139 ** meta ,
140+ url = "/about/" ,
140141 content = html ,
141142 )
142143 )
@@ -362,6 +363,7 @@ def get_fp_food_thumb(slug):
362363 env .get_template ("best.html" ).render (
363364 title = "Vegans In Love with Food" ,
364365 description = "Find tasty vegan food around the San Francisco Bay Area with V.I.L.F!" ,
366+ url = "/best/" ,
365367 # sort by taste desc, then value desc, then alphabetical by name
366368 places = sorted (
367369 places ,
@@ -385,6 +387,7 @@ def get_fp_food_thumb(slug):
385387 env .get_template ("latest.html" ).render (
386388 title = "Latest Reviews from Vegans In Love with Food" ,
387389 description = "Find tasty vegan food around the San Francisco Bay Area!" ,
390+ url = "/latest/" ,
388391 # sort by age then standard
389392 places = sorted (
390393 places ,
@@ -412,6 +415,7 @@ def get_fp_food_thumb(slug):
412415 with open (cuisines_dir / "index.html" , "w" ) as o :
413416 o .write (
414417 env .get_template ("cuisine-list.html" ).render (
418+ url = "/cuisines/" ,
415419 cuisines = [
416420 {
417421 "name" : cuisine ,
@@ -448,6 +452,7 @@ def format_cuisine_description(meta):
448452 rendered = cuisine_template .render (
449453 title = format_cuisine_title (cuisine ),
450454 description = format_cuisine_description (cuisine ),
455+ url = f"/cuisines/{ slug } /" ,
451456 cuisine = cuisine ,
452457 places = sorted (
453458 [place for place in places if place ["cuisine" ] == cuisine ],
@@ -508,6 +513,7 @@ def format_neighborhood_description(neighborhood):
508513 rendered = neighborhood_template .render (
509514 title = format_neighborhood_title (neighborhood ),
510515 description = format_neighborhood_description (neighborhood ),
516+ url = f"/neighborhoods/{ slug } /" ,
511517 neighborhood = neighborhood ,
512518 places = sorted (
513519 neighborhood_places ,
@@ -537,6 +543,7 @@ def format_neighborhood_description(neighborhood):
537543 with open (neighborhoods_dir / "index.html" , "w" ) as o :
538544 o .write (
539545 env .get_template ("neighborhood-list.html" ).render (
546+ url = "/neighborhoods/" ,
540547 neighborhoods = sorted (neighborhoods_with_pages , key = lambda x : - x ["len" ])
541548 )
542549 )
0 commit comments