Add jinja2 relative links to pages

This commit is contained in:
Tristan Maat 2018-04-15 23:11:46 +00:00
parent c0fab723dc
commit e248caab29
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
nav.navbar.navbar-expand-lg.navbar-dark.bg-dark
.container
a.navbar-brand(href="index.html") tlater
a.navbar-brand(href="{{ url_for('index') }}") tlater
button.navbar-toggler(
type="button",
data-toggle="collapse",
@ -13,5 +13,5 @@ nav.navbar.navbar-expand-lg.navbar-dark.bg-dark
#navbar.navbar-collapse.collapse
ul.navbar-nav.mr-auto
li.nav-item: a.nav-link(href="mail.html") E-Mail
li.nav-item: a.nav-link(href="{{ url_for('mail') }}") E-Mail
li.nav-item: a.nav-link(href="https://www.github.com/TLATER") GitHub

View file

@ -6,7 +6,7 @@ block content
.row
//- The form
.col-md-6
form#sendmail(role="form", action="/api/mail", method="post")
form#sendmail(role="form", action="{{ url_for('mail') }}", method="post")
//- The sender address
.form-group
label.control-label(for="mail") Email address