fix URLs when serving from a subdirectory (#120)

This commit is contained in:
dadosch 2020-10-22 17:27:04 +00:00 committed by GitHub
parent 5bc4c2a406
commit 33a68fc44f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 31 additions and 31 deletions

View file

@ -1,5 +1,5 @@
{{ define "header" }}
<link rel="stylesheet" href="/assets/css/404.css">
<link rel="stylesheet" href="{{ "/assets/css/404.css" | relURL }}">
{{ end }}
{{ define "navbar" }}
@ -9,7 +9,7 @@
{{ define "content" }}
<div class="container">
<div class="notFound">
<img src="/assets/images/404.png" alt="">
<img src="{{ "/assets/images/404.png" | relURL }}" alt="">
<div class="message">
<h1>404</h1>
<h4>The page you are looking for is not there yet.</h4>