Skip to content

Commit d0e02d0

Browse files
committed
misc fixes wrt myst config str
1 parent 1744e13 commit d0e02d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/neurolibre_preview_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def render_page(username, repo, commit, page_path=''):
251251
return jsonify({"error": "Invalid config file"}), 500
252252

253253
if not page_path or page_path == 'index.html':
254-
page_path = config['index']
254+
page_path = config.get('projects', [{}])[0].get('index', 'intro')
255255

256256
# if not page_path:
257257
# if 'nav' not in config or not config['nav']:

0 commit comments

Comments
 (0)