Adjust to new rocket-based backend

This commit is contained in:
Tristan Maat 2019-02-03 02:58:52 +00:00
parent ad92c1866c
commit e3e56669be
9 changed files with 21 additions and 21 deletions

View file

@ -67,4 +67,4 @@ block content
You may find the following interesting though:
- A [little web app](/music_sample) showing off what Webgl can do in combination with the JavaScript Audio interface.
- A [little web app](music_sample) showing off what Webgl can do in combination with the JavaScript Audio interface.

View file

@ -1,12 +1,8 @@
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-{{ category }} alert-dismissible fade show" role="alert">
{{ message }}
{{#if flash}}
<div class="alert alert-{{ flash-type }} alert-dismissible fade show" role="alert">
{{ flash }}
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
{% endfor %}
{% endif %}
{% endwith %}
{{/if}}

View file

@ -1,6 +1,6 @@
nav.navbar.navbar-expand-lg.navbar-dark.bg-dark
.container
a.navbar-brand(href="{{ url_for('index') }}") tlater
a.navbar-brand(href="/") 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="{{ url_for('mail') }}") E-Mail
li.nav-item: a.nav-link(href="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="{{ url_for('mail') }}", method="post")
form#sendmail(role="form", action="mail", method="post")
//- The sender address
.form-group
label.control-label(for="mail") Email address

View file

@ -1,7 +1,7 @@
{
"hash": true,
"title": "tlater.net",
"filename": "../index.html",
"filename": "../index.html.hbs",
"template": "./src/index/index.pug",
"chunks": ["index"]
}

View file

@ -1,7 +1,7 @@
{
"hash": true,
"title": "tlater.net contact",
"filename": "../mail.html",
"filename": "../mail.html.hbs",
"template": "./src/mail/mail.pug",
"chunks": ["mail"]
}

View file

@ -1,7 +1,7 @@
{
"hash": true,
"title": "tlater.net music",
"filename": "../music.html",
"filename": "../music.html.hbs",
"template": "./src/music/music.pug",
"chunks": ["music"]
}

View file

@ -1,7 +1,7 @@
{
"hash": true,
"title": "tlater.net startpage",
"filename": "../startpage.html",
"filename": "../startpage.html.hbs",
"template": "./src/startpage/startpage.pug",
"chunks": ["startpage"]
}

View file

@ -34,7 +34,11 @@ module.exports = {
jQuery: "jquery"
}),
new MiniCssExtractPlugin(),
new FaviconsWebpackPlugin(path.resolve(__dirname, "src", "lib", "favicon.png"))
new FaviconsWebpackPlugin({
logo: path.resolve(__dirname, "src", "lib", "favicon.png"),
prefix: "../static/",
title: "tlater.net"
})
].concat(pages.map(page => new HtmlWebpackPlugin(page))),
module: {
rules: [
@ -44,7 +48,7 @@ module.exports = {
use: {
loader: "babel-loader",
options: {
presets: ["babel-preset-env"]
presets: ["@babel/preset-env"]
}
}
},