diff --git a/images/categories/Additions b/images/categories/Additions new file mode 100644 index 0000000..debfc3f Binary files /dev/null and b/images/categories/Additions differ diff --git a/images/categories/Basement Finishing b/images/categories/Basement Finishing new file mode 100644 index 0000000..0365749 Binary files /dev/null and b/images/categories/Basement Finishing differ diff --git a/images/categories/Bathroom Renovations b/images/categories/Bathroom Renovations new file mode 100644 index 0000000..b7851a8 Binary files /dev/null and b/images/categories/Bathroom Renovations differ diff --git a/images/categories/Decks and Landscaping b/images/categories/Decks and Landscaping new file mode 100644 index 0000000..2bb48cb Binary files /dev/null and b/images/categories/Decks and Landscaping differ diff --git a/images/categories/Design Build b/images/categories/Design Build new file mode 100644 index 0000000..0049742 Binary files /dev/null and b/images/categories/Design Build differ diff --git a/images/categories/Full House Renovations b/images/categories/Full House Renovations new file mode 100644 index 0000000..8e72938 Binary files /dev/null and b/images/categories/Full House Renovations differ diff --git a/images/categories/Kitchen Renovations b/images/categories/Kitchen Renovations new file mode 100644 index 0000000..b0d0fbc Binary files /dev/null and b/images/categories/Kitchen Renovations differ diff --git a/run_site.py b/run_site.py index cdb5ddb..ebea78f 100644 --- a/run_site.py +++ b/run_site.py @@ -99,14 +99,12 @@ def show_project_file(category, project_name, filename): @freezer.register_generator def category_photo_url_generator(): categories = os.getcwd() + '/images/categories/' - for category in categories: - print(category) + for category in os.listdir(categories): + category = category.replace(" ", "%20") yield ('show_category_banner', {'filename': category}) -@app.route('/category/') +@app.route('/category/') def show_category_banner(filename): - print(filename) - filename = filename + ".jpg" return send_from_directory('images/categories/', filename) diff --git a/templates/new_index.html b/templates/new_index.html index ecf9fb0..46cb0a1 100644 --- a/templates/new_index.html +++ b/templates/new_index.html @@ -37,7 +37,7 @@