Skip to content

Commit

Permalink
refactor(main): use the traditional name for the root web page
Browse files Browse the repository at this point in the history
  • Loading branch information
xenophonf committed Dec 15, 2023
1 parent 387417d commit a4cb006
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@


@bp.route("/")
def home():
return render_template("home.html")
def index():
return render_template("index.html")
3 changes: 2 additions & 1 deletion src/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
}
</style>
</head>

<body class="d-flex flex-column min-vh-100">
<nav class="navbar navbar-expand-lg navbar-light bg-light mb-4">
<div class="container">
Expand All @@ -30,7 +31,7 @@
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
{{- render_nav_item("main.home", "Home") -}}
{{- render_nav_item("main.index", "Home") -}}
</ul>
</div>
</div>
Expand Down
File renamed without changes.

0 comments on commit a4cb006

Please sign in to comment.