From e248caab29a9cfa4558b7fde057a2c99eda242b4 Mon Sep 17 00:00:00 2001 From: Tristan Maat Date: Sun, 15 Apr 2018 23:11:46 +0000 Subject: [PATCH] Add jinja2 relative links to pages --- src/lib/pug/navigation.pug | 4 ++-- src/mail/mail.pug | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/pug/navigation.pug b/src/lib/pug/navigation.pug index 7adc24e..e3b36e9 100644 --- a/src/lib/pug/navigation.pug +++ b/src/lib/pug/navigation.pug @@ -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 diff --git a/src/mail/mail.pug b/src/mail/mail.pug index 9a5fef0..71c4a4d 100644 --- a/src/mail/mail.pug +++ b/src/mail/mail.pug @@ -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