From 98e73f18b5033d7b138bbae3cb65dd4fd02c49af Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 9 Apr 2016 14:24:20 +0100 Subject: [PATCH] Change URL for project homepage --- project/common/data.py | 2 +- static/src/js/components/navbar/navbar.js | 2 +- templates/projects/{all.html => index.html} | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) rename templates/projects/{all.html => index.html} (59%) diff --git a/project/common/data.py b/project/common/data.py index 2362fa8..1794cd2 100644 --- a/project/common/data.py +++ b/project/common/data.py @@ -30,7 +30,7 @@ def generate_projects(base_dir): files = [] for path in glob(projects_path + '/*.*'): filename = path.replace(projects_path, '') - if filename == '/all.html': + if filename == '/index.html': continue with open(path) as f: if filename.split('.')[1] == 'md': diff --git a/static/src/js/components/navbar/navbar.js b/static/src/js/components/navbar/navbar.js index 30af956..7711f08 100644 --- a/static/src/js/components/navbar/navbar.js +++ b/static/src/js/components/navbar/navbar.js @@ -26,7 +26,7 @@ export default class NavBar extends React.Component { Hipchat Emoticons for All Custom PC - All Projects... + All Projects... Code Challenges diff --git a/templates/projects/all.html b/templates/projects/index.html similarity index 59% rename from templates/projects/all.html rename to templates/projects/index.html index fd0dc43..649b16c 100644 --- a/templates/projects/all.html +++ b/templates/projects/index.html @@ -5,10 +5,11 @@ {% block content %}
- {% for key, project in projects.items %} + {% for project in projects %}
- -
{{ project.title }} + +

{{ project.name }}

+ Read More
{% endfor %}