404 with aboslute URL

This commit is contained in:
Set Hallstrom 2020-09-27 13:37:27 +02:00
parent fdcd5bc3b2
commit 326e752801
4 changed files with 73 additions and 6 deletions

View File

@ -3,6 +3,6 @@ title: 404
description: >-
Wrong page.
image: /images/frankyfresco-video.jpg
layout: page
layout: 404page
sitemap: false
---

70
_layouts/404page.html Normal file
View File

@ -0,0 +1,70 @@
---
title: 404
description: >-
Wrong page.
image: /images/frankyfresco-video.jpg
layout: 404page
sitemap: false
---
<!DOCTYPE HTML>
<!--
Publikatorized by Sakrecoer
Free for personal and commercial use under the CCA 3.0 license
-->
<html lang="{{ site.lang }}">
<head>
{% include seo.html %}
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes" />
<link rel="stylesheet" href="/assets/css/all.min.css" />
<link rel="stylesheet" href="/assets/css/colors-20200925-r1.css" />
<link rel="stylesheet" href="/assets/css/main-20200925-r1.css" />
<link rel="apple-touch-icon" href="{{ site.url }}/apple-touch-icon.png">
<link rel="icon" type="image/png" href="{{ site.url }}/touch-icon.png" sizes="192x192">
<link rel="shortcut icon" href="{{ site.url }}{{ site.icon }}" type="image/png" />
<noscript><link rel="stylesheet" href="/assets/css/noscripts-20200925-r1.css" /></noscript>
<meta name="theme-color" content="{{ site.data.colors.bg }}"/>
</head>
<body>
<!-- Wrapper -->
<div id="main-wrapper">
{% include header.html %}
<section class="info" id="read">
<div class="info-pages">
{{ content }}
</div>
</section>
<!-- Footer -->
{% unless page.collection == 'tracks' or page.url == '/radio/' %}
{% include footer.html %}
{% endunless %}
<!-- END Footer -->
</div>
<!-- END Wrapper -->
{% unless page.collection == 'tracks' %}
{% include navigation.html %}
{% endunless %}
{% include cookie-consent.html %}
{% include scripts.html %}
{% if page.video_path %}
<div class="fullscreen-bg">
<video data-matomo-title="{{ page.title }} VideoBG" autoplay muted loop poster="{{ page.image }}" class="fullscreen-bg__video">
<source src="{{ page.video_path }}" type="video/mp4">
</video>
</div>
{% endif %}
</body>
</html>

View File

@ -40,7 +40,7 @@
</div>
<!-- END Wrapper -->
{% unless page.collection == 'traks' %}
{% unless page.collection == 'tracks' %}
{% include navigation.html %}
{% endunless %}
{% include cookie-consent.html %}

View File

@ -1,13 +1,10 @@
---
layout: default
---
{% include relBase.html %}
{% include header.html %}
<section class="info" id="read">
<div class="info-pages">
{{ content }}
</div>
</section>
{% if page.url == '/fr-fretag/' %}
{% include contact.html %}
{% endif %}