@app.route('/portfolio')
def portfolio():
    json_file = 'static/json/projects.json'
    project_list = read_json(json_file)
    project_groups = [[project_list[(i * 2)], project_list[((i * 2) + 1)]] for i in range((len(project_list) // 2))]
    project_singles = False
    if ((len(project_list) % 2) != 0):
        project_singles = project_list[(- 1):]
    return render_template('portfolio.html', title='portfolio', project_groups=project_groups, project_singles=project_singles)
@app.route('/portfolio')
def portfolio():
    json_file = 'static/json/projects.json'
    project_list = read_json(json_file)
    project_groups = [[project_list[(i * 2)], project_list[((i * 2) + 1)]] for i in range((len(project_list) // 2))]
    project_singles = False
    if ((len(project_list) % 2) != 0):
        project_singles = project_list[(- 1):]
    return render_template('portfolio.html', title='portfolio', project_groups=project_groups, project_singles=project_singles)